mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-13 03:29:46 +08:00
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.
This commit is contained in:
parent
b8ed562d19
commit
85d1f94637
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue