From: Kevin Sawicki Date: Fri, 24 Apr 2015 20:32:46 +0000 (-0700) Subject: Add default help menu X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3c21424de55c36d7dd7851c8733fc8af863f436;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Add default help menu --- diff --git a/atom/browser/default_app/default_app.js b/atom/browser/default_app/default_app.js index 7eeebf9..263f563 100644 --- a/atom/browser/default_app/default_app.js +++ b/atom/browser/default_app/default_app.js @@ -145,6 +145,23 @@ app.on('ready', function() { }, ] }, + { + label: 'Help', + submenu: [ + { + label: 'Documentation', + click: function() { require('shell').openExternal('https://github.com/atom/electron/tree/master/docs#readme') } + }, + { + label: 'Community Discussions', + click: function() { require('shell').openExternal('https://discuss.atom.io/c/electron') } + }, + { + label: 'Search Issues', + click: function() { require('shell').openExternal('https://github.com/atom/electron/issues') } + } + ] + } ]; menu = Menu.buildFromTemplate(template); @@ -185,6 +202,23 @@ app.on('ready', function() { }, ] }, + { + label: 'Help', + submenu: [ + { + label: 'Documentation', + click: function() { require('shell').openExternal('https://github.com/atom/electron/tree/master/docs#readme') } + }, + { + label: 'Community Discussions', + click: function() { require('shell').openExternal('https://discuss.atom.io/c/electron') } + }, + { + label: 'Search Issues', + click: function() { require('shell').openExternal('https://github.com/atom/electron/issues') } + } + ] + } ]; menu = Menu.buildFromTemplate(template);