From ee71980007a171fb807982dc915788f49bb30b8e Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Thu, 18 Apr 2019 16:15:49 -0300 Subject: [PATCH] redirect in-app menu for reporting an issue to the fork --- .../main-process/menu/build-default-menu.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/app/src/main-process/menu/build-default-menu.ts b/app/src/main-process/menu/build-default-menu.ts index fd4a440c2cd..00e93dce8ff 100644 --- a/app/src/main-process/menu/build-default-menu.ts +++ b/app/src/main-process/menu/build-default-menu.ts @@ -1,4 +1,4 @@ -import { Menu, ipcMain, shell, app } from 'electron' +import { Menu, ipcMain, shell } from 'electron' import { ensureItemIds } from './ensure-item-ids' import { MenuEvent } from './menu-event' import { truncateWithEllipsis } from '../../lib/truncate-with-ellipsis' @@ -365,16 +365,9 @@ export function buildDefaultMenu({ const submitIssueItem: Electron.MenuItemConstructorOptions = { label: __DARWIN__ ? 'Report Issue…' : 'Report issue…', - click() { - shell.openExternal('https://github.com/desktop/desktop/issues/new/choose') - }, - } - - const contactSupportItem: Electron.MenuItemConstructorOptions = { - label: __DARWIN__ ? 'Contact GitHub Support…' : '&Contact GitHub support…', click() { shell.openExternal( - `https://github.com/contact?from_desktop_app=1&app_version=${app.getVersion()}` + 'https://github.com/shiftkey/desktop/issues/new/choose' ) }, } @@ -406,12 +399,7 @@ export function buildDefaultMenu({ }, } - const helpItems = [ - submitIssueItem, - contactSupportItem, - showUserGuides, - showLogsItem, - ] + const helpItems = [submitIssueItem, showUserGuides, showLogsItem] if (__DEV__) { helpItems.push(