()
| 40 | } |
| 41 | |
| 42 | serialize() { |
| 43 | const data: AppData = {notFirstTime: true}; |
| 44 | if (!this.tray) |
| 45 | data.hideTrayIcon = true; |
| 46 | if (process.platform == 'darwin' && !this.isDockIconVisible()) |
| 47 | data.hideDockIcon = true; |
| 48 | if (this.dashboarShortcut) |
| 49 | data.dashboarShortcut = this.dashboarShortcut; |
| 50 | return data; |
| 51 | } |
| 52 | |
| 53 | hasDockOrTray() { |
| 54 | return this.isDockIconVisible() || this.tray || assistantManager.getAssistants().find(a => a.tray); |
nothing calls this directly
no test coverage detected