Make app.setApplicationMenu an alias to Menu.setApplicationMenu.
This commit is contained in:
parent
666f6b3a01
commit
93f1a3dbd5
1 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,9 @@ app.getHomeDir = ->
|
|||
app.getBrowserWindows = ->
|
||||
objectsRegistry.getAllWindows()
|
||||
|
||||
app.setApplicationMenu = (menu) ->
|
||||
require('menu').setApplicationMenu menu
|
||||
|
||||
app.commandLine =
|
||||
appendSwitch: bindings.appendSwitch,
|
||||
appendArgument: bindings.appendArgument
|
||||
|
|
Loading…
Reference in a new issue