]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't override user's menu in default_app
authorCheng Zhao <zcbenz@gmail.com>
Mon, 29 Jun 2015 05:11:53 +0000 (13:11 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 29 Jun 2015 05:11:53 +0000 (13:11 +0800)
Close #2068.

atom/browser/default_app/main.js

index f59b6e0efe7a4c87783a6c9a033b66b75876f410..567cc118e25b7335ccda38cdeafcc7a5c1a3a1cd 100644 (file)
@@ -33,6 +33,9 @@ for (var i in argv) {
 
 // Create default menu.
 app.once('ready', function() {
+  if (Menu.getApplicationMenu())
+    return;
+
   var template;
   if (process.platform == 'darwin') {
     template = [