Merge pull request #923 from ffdd/patch-1
Add that Menu.setApplication only works after 'ready' event.
This commit is contained in:
commit
64a41b65bb
1 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,8 @@ var template = [
|
|||
];
|
||||
|
||||
menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
Menu.setApplicationMenu(menu); // Must be called within app.on('ready', function(){ ... });
|
||||
```
|
||||
|
||||
## Class: Menu
|
||||
|
|
Loading…
Reference in a new issue