win: Newly created window should also be aware of application menu.
This commit is contained in:
parent
caaab22841
commit
a182de20a4
5 changed files with 17 additions and 3 deletions
|
@ -55,6 +55,8 @@ Menu.setApplicationMenu = (menu) ->
|
|||
windows = app.getBrowserWindows()
|
||||
w.setMenu menu for w in windows
|
||||
|
||||
Menu.getApplicationMenu = -> applicationMenu
|
||||
|
||||
Menu.sendActionToFirstResponder = bindings.sendActionToFirstResponder
|
||||
|
||||
Menu.buildFromTemplate = (template) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue