Skip to content

Commit

Permalink
Updated menu
Browse files Browse the repository at this point in the history
Make Quit & Check for Update menu available on Windows/Linux as well
  • Loading branch information
hql287 committed Jan 13, 2018
1 parent 7d1b268 commit 068d919
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions app/renderers/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ const menuTemplate = [
},
],
},
{ type: 'separator' },
{
label: 'Quit App',
accelerator: 'CmdOrCtrl+Q',
click() {
ipc.send('quit-app');
},
},
],
},

Expand Down Expand Up @@ -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',
Expand All @@ -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');
},
},
],
Expand All @@ -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');
},
},
],
});
}
Expand Down

0 comments on commit 068d919

Please sign in to comment.