1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-29 07:59:42 +01:00

no tray ctx menu for macos due to electorn bug

This commit is contained in:
Kyle Spearrin 2018-05-29 23:06:12 -04:00
parent c71b9703f3
commit f99b34d062

View File

@ -52,7 +52,9 @@ export class TrayMain {
menuItemOptions.splice(1, 0, ...additionalMenuItems);
}
this.contextMenu = Menu.buildFromTemplate(menuItemOptions);
if (process.platform !== 'darwin') {
this.contextMenu = Menu.buildFromTemplate(menuItemOptions);
}
if (await this.storageService.get<boolean>(ElectronConstants.enableTrayKey)) {
this.showTray();
}