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
1 changed files with 3 additions and 1 deletions

View File

@ -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();
} }