(shortcut: string | null)
| 51 | } |
| 52 | |
| 53 | setShortcut(shortcut: string | null) { |
| 54 | if (this.shortcut == shortcut) |
| 55 | return; |
| 56 | if (this.shortcut) |
| 57 | gui.globalShortcut.unregister(this.shortcutId); |
| 58 | this.shortcut = shortcut; |
| 59 | if (shortcut) |
| 60 | this.shortcutId = gui.globalShortcut.register(shortcut, this.onActivate.bind(this)); |
| 61 | else |
| 62 | this.shortcutId = null; |
| 63 | } |
| 64 | |
| 65 | setTrayIcon(trayIcon: Icon | null) { |
| 66 | if (this.trayIcon == trayIcon || |
no outgoing calls
no test coverage detected