Skip to content

Commit

Permalink
redirect in-app menu for reporting an issue to the fork (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jul 2, 2019
1 parent a11fb55 commit 03bc90c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/src/main-process/menu/build-default-menu.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -417,16 +417,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'
)
},
}
Expand Down Expand Up @@ -469,7 +462,6 @@ export function buildDefaultMenu({

const helpItems = [
submitIssueItem,
contactSupportItem,
showUserGuides,
showKeyboardShortcuts,
showLogsItem,
Expand Down

0 comments on commit 03bc90c

Please sign in to comment.