From e1d98e0d8e3b8309e8da518a44610778cdec01f8 Mon Sep 17 00:00:00 2001 From: Abhigyan Khaund <20434085+abhigyank@users.noreply.github.com> Date: Sun, 7 Oct 2018 17:37:09 +0530 Subject: [PATCH] native-menus: Rename a few options of the submenus. --- app/main/menu.js | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/app/main/menu.js b/app/main/menu.js index d795dbc69..eb7ed738f 100644 --- a/app/main/menu.js +++ b/app/main/menu.js @@ -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() { @@ -210,13 +218,6 @@ 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(); @@ -224,7 +225,7 @@ class AppMenu { }, { type: 'separator' }, { - label: 'Desktop App Settings', + label: 'Desktop Settings', accelerator: 'Cmd+,', click(item, focusedWindow) { if (focusedWindow) { @@ -296,8 +297,6 @@ class AppMenu { role: 'paste' }, { role: 'pasteandmatchstyle' - }, { - role: 'delete' }, { role: 'selectall' }] @@ -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) { @@ -398,8 +390,6 @@ class AppMenu { role: 'paste' }, { role: 'pasteandmatchstyle' - }, { - role: 'delete' }, { type: 'separator' }, {