Browse Source

fix(menu): fix app menu

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
afd20faf95
  1. 22
      app/menu.js

22
app/menu.js

@ -47,11 +47,9 @@ export default class MenuBuilder {
const subMenuAbout = { const subMenuAbout = {
label: 'Electron', label: 'Electron',
submenu: [ submenu: [
{ label: 'About ElectronReact', selector: 'orderFrontStandardAboutPanel:' }, { label: 'About Zap', selector: 'orderFrontStandardAboutPanel:' },
{ type: 'separator' }, { type: 'separator' },
{ label: 'Services', submenu: [] }, { label: 'Hide Zap', accelerator: 'Command+H', selector: 'hide:' },
{ type: 'separator' },
{ label: 'Hide ElectronReact', accelerator: 'Command+H', selector: 'hide:' },
{ label: 'Hide Others', accelerator: 'Command+Shift+H', selector: 'hideOtherApplications:' }, { label: 'Hide Others', accelerator: 'Command+Shift+H', selector: 'hideOtherApplications:' },
{ label: 'Show All', selector: 'unhideAllApplications:' }, { label: 'Show All', selector: 'unhideAllApplications:' },
{ type: 'separator' }, { type: 'separator' },
@ -104,10 +102,10 @@ export default class MenuBuilder {
const subMenuHelp = { const subMenuHelp = {
label: 'Help', label: 'Help',
submenu: [ submenu: [
{ label: 'Learn More', click() { shell.openExternal('http://electron.atom.io') } }, { label: 'Learn More', click() { shell.openExternal('https://zap.jackmallers.com/') } },
{ label: 'Documentation', click() { shell.openExternal('https://github.com/atom/electron/tree/master/docs#readme') } }, { label: 'Documentation', click() { shell.openExternal('https://github.com/LN-Zap/zap-desktop') } },
{ label: 'Community Discussions', click() { shell.openExternal('https://discuss.atom.io/c/electron') } }, { label: 'Community Discussions', click() { shell.openExternal('zaphq.slack.com') } },
{ label: 'Search Issues', click() { shell.openExternal('https://github.com/atom/electron/issues') } } { label: 'Search Issues', click() { shell.openExternal('https://github.com/LN-Zap/zap-desktop/issues') } }
] ]
} }
@ -169,22 +167,22 @@ export default class MenuBuilder {
submenu: [{ submenu: [{
label: 'Learn More', label: 'Learn More',
click() { click() {
shell.openExternal('http://electron.atom.io') shell.openExternal('https://zap.jackmallers.com/')
} }
}, { }, {
label: 'Documentation', label: 'Documentation',
click() { click() {
shell.openExternal('https://github.com/atom/electron/tree/master/docs#readme') shell.openExternal('https://github.com/LN-Zap/zap-desktop')
} }
}, { }, {
label: 'Community Discussions', label: 'Community Discussions',
click() { click() {
shell.openExternal('https://discuss.atom.io/c/electron') shell.openExternal('zaphq.slack.com')
} }
}, { }, {
label: 'Search Issues', label: 'Search Issues',
click() { click() {
shell.openExternal('https://github.com/atom/electron/issues') shell.openExternal('https://github.com/LN-Zap/zap-desktop/issues')
} }
}] }]
}] }]

Loading…
Cancel
Save