no tray ctx menu for macos due to electorn bug
This commit is contained in:
parent
c71b9703f3
commit
f99b34d062
|
@ -52,7 +52,9 @@ export class TrayMain {
|
||||||
menuItemOptions.splice(1, 0, ...additionalMenuItems);
|
menuItemOptions.splice(1, 0, ...additionalMenuItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.platform !== 'darwin') {
|
||||||
this.contextMenu = Menu.buildFromTemplate(menuItemOptions);
|
this.contextMenu = Menu.buildFromTemplate(menuItemOptions);
|
||||||
|
}
|
||||||
if (await this.storageService.get<boolean>(ElectronConstants.enableTrayKey)) {
|
if (await this.storageService.get<boolean>(ElectronConstants.enableTrayKey)) {
|
||||||
this.showTray();
|
this.showTray();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue