Add that Menu.setApplication only works after 'ready' event.

I got caught on this while trying to add a menu in my application in OSX.
This commit is contained in:
ffdd 2014-12-16 21:50:40 -05:00
parent 4fc14959a8
commit 31d606220e

View file

@ -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