From f99b34d0622873b49f1cd9b8c586da563172cda1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 29 May 2018 23:06:12 -0400 Subject: [PATCH] no tray ctx menu for macos due to electorn bug --- src/electron/tray.main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/electron/tray.main.ts b/src/electron/tray.main.ts index 716a03115f..5a8ec4b3fc 100644 --- a/src/electron/tray.main.ts +++ b/src/electron/tray.main.ts @@ -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(ElectronConstants.enableTrayKey)) { this.showTray(); }