MCPcopy Create free account
hub / github.com/chieapp/chie / setDashboardShortcut

Method setDashboardShortcut

src/controller/app.ts:87–98  ·  view source on GitHub ↗
(shortcut: string)

Source from the content-addressed store, hash-verified

85 }
86
87 setDashboardShortcut(shortcut: string) {
88 if (this.dashboarShortcut)
89 gui.globalShortcut.unregister(this.shortcutId);
90 this.dashboarShortcut = shortcut;
91 if (shortcut) {
92 this.shortcutId = gui.globalShortcut.register(shortcut, () => windowManager.showNamedWindow('dashboard'));
93 } else {
94 this.shortcutId = null;
95 this.dashboarShortcut = null;
96 }
97 this.saveConfig();
98 }
99}
100
101export default new App();

Callers 2

deserializeMethod · 0.95

Calls 1

showNamedWindowMethod · 0.80

Tested by

no test coverage detected