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

Method setHasTray

src/controller/app.ts:74–85  ·  view source on GitHub ↗
(has: boolean)

Source from the content-addressed store, hash-verified

72 }
73
74 setHasTray(has: boolean) {
75 if (has == !!this.tray)
76 return;
77 if (has) {
78 this.tray = new AppTray();
79 } else {
80 this.tray.tray.remove();
81 this.tray = null;
82 collectGarbage();
83 }
84 this.saveConfig();
85 }
86
87 setDashboardShortcut(shortcut: string) {
88 if (this.dashboarShortcut)

Callers 1

#createAppTraySettingMethod · 0.80

Calls 1

collectGarbageFunction · 0.90

Tested by

no test coverage detected