Skip to content

Commit

Permalink
Merge pull request #157 from hql287/update-menu
Browse files Browse the repository at this point in the history
Make Quit & Check for Update menu available on Windows/Linux
  • Loading branch information
hql287 authored Jan 13, 2018
2 parents 7d1b268 + 068d919 commit 5b2e258
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 5b2e258

Please sign in to comment.