From bf028a1d9023a00a7fdfeb889bb99bc3ecc09ed3 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 26 Oct 2020 11:45:59 +0200 Subject: [PATCH] Duplicate "support" items in menu, fix #1128 Signed-off-by: Roman --- src/main/menu.ts | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/src/main/menu.ts b/src/main/menu.ts index d3aacc8118..7bb340b5ce 100644 --- a/src/main/menu.ts +++ b/src/main/menu.ts @@ -1,7 +1,7 @@ import { app, BrowserWindow, dialog, Menu, MenuItem, MenuItemConstructorOptions, shell, webContents } from "electron" import { autorun } from "mobx"; import { WindowManager } from "./window-manager"; -import { appName, isMac, issuesTrackerUrl, isWindows, slackUrl } from "../common/vars"; +import { appName, isMac, isWindows } from "../common/vars"; import { addClusterURL } from "../renderer/components/+add-cluster/add-cluster.route"; import { preferencesURL } from "../renderer/components/+preferences/preferences.route"; import { whatsNewURL } from "../renderer/components/+whats-new/whats-new.route"; @@ -174,30 +174,18 @@ export function buildMenu(windowManager: WindowManager) { const helpMenu: MenuItemConstructorOptions = { role: 'help', submenu: [ - { - label: "License", - click: async () => { - shell.openExternal('https://k8slens.dev/licenses/eula.md'); - }, - }, - { - label: "Community Slack", - click: async () => { - shell.openExternal(slackUrl); - }, - }, - { - label: 'Report an Issue', - click: async () => { - shell.openExternal(issuesTrackerUrl); - }, - }, { label: "What's new?", click() { navigate(whatsNewURL()) }, }, + { + label: "License", + click: async () => { + shell.openExternal('https://k8slens.dev/licenses/eula.md'); + }, + }, ...ignoreOnMac([ { label: "About Lens",