Skip to content

Commit 5b2e258

Browse files
authored
Merge pull request #157 from hql287/update-menu
Make Quit & Check for Update menu available on Windows/Linux
2 parents 7d1b268 + 068d919 commit 5b2e258

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

app/renderers/menu.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ const menuTemplate = [
9191
},
9292
],
9393
},
94+
{ type: 'separator' },
95+
{
96+
label: 'Quit App',
97+
accelerator: 'CmdOrCtrl+Q',
98+
click() {
99+
ipc.send('quit-app');
100+
},
101+
},
94102
],
95103
},
96104

@@ -148,6 +156,13 @@ const menuTemplate = [
148156
{
149157
role: 'help',
150158
submenu: [
159+
{
160+
label: 'Check For Updates',
161+
accelerator: 'CmdOrCtrl+U',
162+
click() {
163+
ipc.send('check-for-updates');
164+
},
165+
},
151166
{
152167
label: 'Show Tutorial',
153168
accelerator: 'CmdOrCtrl+T',
@@ -158,7 +173,7 @@ const menuTemplate = [
158173
{
159174
label: 'Learn More',
160175
click() {
161-
require('electron').shell.openExternal('https://www.paprless.co');
176+
require('electron').shell.openExternal('https://manta.life');
162177
},
163178
},
164179
],
@@ -171,27 +186,12 @@ if (process.platform === 'darwin') {
171186
submenu: [
172187
{ role: 'about' },
173188
{ type: 'separator' },
174-
{
175-
label: 'Check For Updates',
176-
accelerator: 'CmdOrCtrl+U',
177-
click() {
178-
ipc.send('check-for-updates');
179-
},
180-
},
181189
{ type: 'separator' },
182190
{ role: 'services', submenu: [] },
183191
{ type: 'separator' },
184192
{ role: 'hide' },
185193
{ role: 'hideothers' },
186194
{ role: 'unhide' },
187-
{ type: 'separator' },
188-
{
189-
label: 'Quit App',
190-
accelerator: 'CmdOrCtrl+Q',
191-
click() {
192-
ipc.send('quit-app');
193-
},
194-
},
195195
],
196196
});
197197
}

0 commit comments

Comments
 (0)