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 Feb 4, 2024
1 parent a79134e commit bc744d2
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 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, shell, app, BrowserWindow } from 'electron'
import { Menu, shell, BrowserWindow } from 'electron'
import { ensureItemIds } from './ensure-item-ids'
import { MenuEvent } from './menu-event'
import { truncateWithEllipsis } from '../../lib/truncate-with-ellipsis'
Expand Down Expand Up @@ -486,22 +486,11 @@ export function buildDefaultMenu({
label: __DARWIN__ ? 'Report Issue…' : 'Report issue…',
click() {
shell
.openExternal('https://github.com/desktop/desktop/issues/new/choose')
.openExternal('https://github.com/shiftkey/desktop/issues/new/choose')
.catch(err => log.error('Failed opening issue creation page', err))
},
}

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()}`
)
.catch(err => log.error('Failed opening contact support page', err))
},
}

const showUserGuides: Electron.MenuItemConstructorOptions = {
label: 'Show User Guides',
click() {
Expand Down Expand Up @@ -540,7 +529,6 @@ export function buildDefaultMenu({

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

0 comments on commit bc744d2

Please sign in to comment.