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

View File

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