mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
fix(menus): Add Thread menu to win/linux, fix disabling
This commit is contained in:
parent
e3cba1cae5
commit
81f94943d6
|
@ -47,6 +47,19 @@
|
||||||
{ "label": "Toggle &Full Screen", "command": "window:toggle-full-screen" }
|
{ "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",
|
"label": "Developer",
|
||||||
"submenu": [
|
"submenu": [
|
||||||
|
|
|
@ -30,6 +30,19 @@
|
||||||
{ "label": "Toggle &Full Screen", "command": "window:toggle-full-screen" }
|
{ "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",
|
"label": "Developer",
|
||||||
"submenu": [
|
"submenu": [
|
||||||
|
|
|
@ -58,7 +58,7 @@ class MenuManager
|
||||||
if item.command and item.command.startsWith('application:') is false
|
if item.command and item.command.startsWith('application:') is false
|
||||||
item.enabled = NylasEnv.commands.listenerCountForCommand(item.command) > 0
|
item.enabled = NylasEnv.commands.listenerCountForCommand(item.command) > 0
|
||||||
if item.submenu?
|
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())
|
@sendToBrowserProcess(@template, NylasEnv.keymaps.getBindingsForAllCommands())
|
||||||
|
|
||||||
loadPlatformItems: ->
|
loadPlatformItems: ->
|
||||||
|
|
Loading…
Reference in a new issue