This commit is contained in:
jdescottes 2015-04-26 23:34:09 +02:00
commit 8ae14281cc

View File

@ -152,6 +152,13 @@
if (pskl.devtools) { if (pskl.devtools) {
pskl.devtools.init(); pskl.devtools.init();
} }
if (pskl.utils.Environment.detectNodeWebkit() && pskl.utils.UserAgent.isMac) {
var gui = require('nw.gui');
var mb = new gui.Menu({type:'menubar'});
mb.createMacBuiltin('Piskel');
gui.Window.get().menu = mb;
}
}, },
loadPiskel_ : function (serializedPiskel, descriptor, fps) { loadPiskel_ : function (serializedPiskel, descriptor, fps) {