Skip to content

Commit

Permalink
native-menus: Rename a few options of the submenus.
Browse files Browse the repository at this point in the history
  • Loading branch information
akashnimare authored Oct 7, 2018
2 parents 89e5d28 + e1d98e0 commit bd805b8
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions app/main/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ class AppMenu {
label: `${appName + ' Desktop'} v${app.getVersion()}`,
enabled: false
},
{
label: 'About Zulip',
click(item, focusedWindow) {
if (focusedWindow) {
AppMenu.sendAction('open-about');
}
}
},
{
label: `What's New`,
click() {
Expand Down Expand Up @@ -210,21 +218,14 @@ class AppMenu {
return [{
label: `${app.getName()}`,
submenu: [{
label: 'About Zulip',
click(item, focusedWindow) {
if (focusedWindow) {
AppMenu.sendAction('open-about');
}
}
}, {
label: `Check for Updates`,
click() {
AppMenu.checkForUpdate();
}
}, {
type: 'separator'
}, {
label: 'Desktop App Settings',
label: 'Desktop Settings',
accelerator: 'Cmd+,',
click(item, focusedWindow) {
if (focusedWindow) {
Expand Down Expand Up @@ -296,8 +297,6 @@ class AppMenu {
role: 'paste'
}, {
role: 'pasteandmatchstyle'
}, {
role: 'delete'
}, {
role: 'selectall'
}]
Expand All @@ -322,21 +321,14 @@ class AppMenu {
return [{
label: '&File',
submenu: [{
label: 'About Zulip',
click(item, focusedWindow) {
if (focusedWindow) {
AppMenu.sendAction('open-about');
}
}
}, {
label: `Check for Update`,
label: `Check for Updates`,
click() {
AppMenu.checkForUpdate();
}
}, {
type: 'separator'
}, {
label: 'Desktop App Settings',
label: 'Desktop Settings',
accelerator: 'Ctrl+,',
click(item, focusedWindow) {
if (focusedWindow) {
Expand Down Expand Up @@ -398,8 +390,6 @@ class AppMenu {
role: 'paste'
}, {
role: 'pasteandmatchstyle'
}, {
role: 'delete'
}, {
type: 'separator'
}, {
Expand Down

0 comments on commit bd805b8

Please sign in to comment.