From 85d1f94637102b9ad18be204e462dad3739bba5d Mon Sep 17 00:00:00 2001 From: Halla Moore Date: Tue, 1 Nov 2016 09:57:45 -0700 Subject: [PATCH] fix(menubar): Add missing not operator Menu items could not be opened on Linux because Linux allows menu items to be disabled, and the logic for determining if a menu item should be enabled was accidentally negated during coffescript conversions. --- src/menu-manager.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu-manager.es6 b/src/menu-manager.es6 index 4c30a27c4..c8c36be75 100644 --- a/src/menu-manager.es6 +++ b/src/menu-manager.es6 @@ -69,7 +69,7 @@ export default class MenuManager { item.enabled = NylasEnv.commands.listenerCountForCommand(item.command) > 0; } if (item.submenu != null) { - item.enabled = item.submenu.every((subitem) => subitem.enabled === false); + item.enabled = !item.submenu.every((subitem) => subitem.enabled === false); } }); return this.sendToBrowserProcess(this.template, NylasEnv.keymaps.getBindingsForAllCommands());