From 0182655b2f66d5b61738766b0f6d8a897b816b36 Mon Sep 17 00:00:00 2001 From: Dennis Brown Date: Wed, 29 Mar 2017 22:14:03 -0500 Subject: [PATCH] add easy6502 link --- app/electron/menu.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/electron/menu.js b/app/electron/menu.js index 749a112..b9d71c5 100644 --- a/app/electron/menu.js +++ b/app/electron/menu.js @@ -1,4 +1,5 @@ const { app } = require('electron') + const OSXtemplate = [ { label: 'Application', @@ -32,7 +33,13 @@ const OSXtemplate = [ { label: 'Toggle &Full Screen', accelerator: 'F11', click() { mainWindow.setFullScreen(!mainWindow.isFullScreen()); } } ] - } + }, + { + label: 'Help', + submenu: [ + { label: 'Easy 6502 Tutorial', click: function () { require('electron').shell.openExternal('http://electron.atom.io'); } } + ] + }, ] const PCtemplate = [ @@ -57,9 +64,10 @@ const PCtemplate = [ label: 'Help', submenu: [ { label: 'About 6502Desktop', selector: 'orderFrontStandardAboutPanel:' }, + { label: 'Easy 6502 Tutorial', click: function () { electronOpenLinkInBrowser('http://example.com'); } } ] }, ] module.exports.OSXtemplate = OSXtemplate; -module.exports.PCtemplate = PCtemplate; \ No newline at end of file +module.exports.PCtemplate = PCtemplate;