(has: boolean)
| 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) |
no test coverage detected