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 = ->
|
app.getBrowserWindows = ->
|
||||||
objectsRegistry.getAllWindows()
|
objectsRegistry.getAllWindows()
|
||||||
|
|
||||||
|
app.setApplicationMenu = (menu) ->
|
||||||
|
require('menu').setApplicationMenu menu
|
||||||
|
|
||||||
app.commandLine =
|
app.commandLine =
|
||||||
appendSwitch: bindings.appendSwitch,
|
appendSwitch: bindings.appendSwitch,
|
||||||
appendArgument: bindings.appendArgument
|
appendArgument: bindings.appendArgument
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue