mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30:21 +08:00
fix(menu): On Win32, display autoupdate / debug toggle in menu
Fixes #375
This commit is contained in:
parent
1dc1ab5b28
commit
b9d45375ce
2 changed files with 2 additions and 4 deletions
|
@ -124,7 +124,7 @@ class ApplicationMenu
|
|||
exitItem.visible = fullscreen
|
||||
|
||||
showDevModeItem: ->
|
||||
devModeItem = _.find(@flattenMenuItems(@menu), ({label}) -> label == 'Run with Debug Flags')
|
||||
devModeItem = _.find(@flattenMenuItems(@menu), ({command}) -> command is 'application:toggle-dev')
|
||||
devModeItem?.checked = global.application.devMode
|
||||
|
||||
# Default list of menu items.
|
||||
|
|
|
@ -112,9 +112,7 @@ class ToolbarMenuControl extends React.Component
|
|||
|
||||
_openMenu: =>
|
||||
applicationMenu = require('remote').getGlobal('application').applicationMenu
|
||||
activeTemplate = Utils.deepClone(applicationMenu.activeTemplate)
|
||||
menu = require('remote').require('menu').buildFromTemplate(activeTemplate)
|
||||
menu.popup(NylasEnv.getCurrentWindow())
|
||||
applicationMenu.menu.popup(NylasEnv.getCurrentWindow())
|
||||
|
||||
ComponentRegistry.register ToolbarWindowControls,
|
||||
location: WorkspaceStore.Sheet.Global.Toolbar.Left
|
||||
|
|
Loading…
Reference in a new issue