disable tray icon on linux - fixes #2471, fixes #1642

This commit is contained in:
Eugene Pankov 2021-04-04 19:59:23 +02:00
parent 3a7204c2ee
commit d71ee6b6f1
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -110,7 +110,7 @@ export class Application {
} }
enableTray (): void { enableTray (): void {
if (this.tray) { if (this.tray || process.platform === 'linux') {
return return
} }
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
@ -135,6 +135,9 @@ export class Application {
} }
disableTray (): void { disableTray (): void {
if (process.platform === 'linux') {
return
}
this.tray?.destroy() this.tray?.destroy()
this.tray = null this.tray = null
} }