From 068d919d508c40de9e3cf789d2d9bd68a4cf877d Mon Sep 17 00:00:00 2001 From: "Hung Q. Le" Date: Sat, 13 Jan 2018 11:01:02 +0700 Subject: [PATCH] Updated menu Make Quit & Check for Update menu available on Windows/Linux as well --- app/renderers/menu.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app/renderers/menu.js b/app/renderers/menu.js index e7146662..ac1ece09 100644 --- a/app/renderers/menu.js +++ b/app/renderers/menu.js @@ -91,6 +91,14 @@ const menuTemplate = [ }, ], }, + { type: 'separator' }, + { + label: 'Quit App', + accelerator: 'CmdOrCtrl+Q', + click() { + ipc.send('quit-app'); + }, + }, ], }, @@ -148,6 +156,13 @@ const menuTemplate = [ { role: 'help', submenu: [ + { + label: 'Check For Updates', + accelerator: 'CmdOrCtrl+U', + click() { + ipc.send('check-for-updates'); + }, + }, { label: 'Show Tutorial', accelerator: 'CmdOrCtrl+T', @@ -158,7 +173,7 @@ const menuTemplate = [ { label: 'Learn More', click() { - require('electron').shell.openExternal('https://www.paprless.co'); + require('electron').shell.openExternal('https://manta.life'); }, }, ], @@ -171,27 +186,12 @@ if (process.platform === 'darwin') { submenu: [ { role: 'about' }, { type: 'separator' }, - { - label: 'Check For Updates', - accelerator: 'CmdOrCtrl+U', - click() { - ipc.send('check-for-updates'); - }, - }, { type: 'separator' }, { role: 'services', submenu: [] }, { type: 'separator' }, { role: 'hide' }, { role: 'hideothers' }, { role: 'unhide' }, - { type: 'separator' }, - { - label: 'Quit App', - accelerator: 'CmdOrCtrl+Q', - click() { - ipc.send('quit-app'); - }, - }, ], }); }