diff --git a/menus/linux.json b/menus/linux.json index 62e9fc31d..0715c8f25 100644 --- a/menus/linux.json +++ b/menus/linux.json @@ -47,6 +47,19 @@ { "label": "Toggle &Full Screen", "command": "window:toggle-full-screen" } ] }, + { + "label": "Thread", + "submenu": [ + { "label": "Reply", "command": "core:reply" }, + { "label": "Reply All", "command": "core:reply-all" }, + { "label": "Forward", "command": "core:forward" }, + { "type": "separator" }, + { "label": "Star", "command": "core:star-item" }, + { "type": "separator", "id": "thread-actions" }, + { "label": "Remove from view", "command": "core:remove-from-view" }, + { "type": "separator", "id": "view-actions" } + ] + }, { "label": "Developer", "submenu": [ diff --git a/menus/win32.json b/menus/win32.json index 196c592ee..8b80da569 100644 --- a/menus/win32.json +++ b/menus/win32.json @@ -30,6 +30,19 @@ { "label": "Toggle &Full Screen", "command": "window:toggle-full-screen" } ] }, + { + "label": "Thread", + "submenu": [ + { "label": "Reply", "command": "core:reply" }, + { "label": "Reply All", "command": "core:reply-all" }, + { "label": "Forward", "command": "core:forward" }, + { "type": "separator" }, + { "label": "Star", "command": "core:star-item" }, + { "type": "separator", "id": "thread-actions" }, + { "label": "Remove from view", "command": "core:remove-from-view" }, + { "type": "separator", "id": "view-actions" } + ] + }, { "label": "Developer", "submenu": [ diff --git a/src/menu-manager.coffee b/src/menu-manager.coffee index 4ee3e4172..fffa5dfce 100644 --- a/src/menu-manager.coffee +++ b/src/menu-manager.coffee @@ -58,7 +58,7 @@ class MenuManager if item.command and item.command.startsWith('application:') is false item.enabled = NylasEnv.commands.listenerCountForCommand(item.command) > 0 if item.submenu? - item.enabled = _.every item.submenu, (item) -> item.enabled is false + item.enabled = not _.every item.submenu, (item) -> item.enabled is false @sendToBrowserProcess(@template, NylasEnv.keymaps.getBindingsForAllCommands()) loadPlatformItems: ->