Skip to content

Commit c4a0edd

Browse files
committed
Link to new logs, plus docs and feedback site, in the 'Help' menu
1 parent 76f8bef commit c4a0edd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/menu.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as path from 'path';
12
import { app, Menu, MenuItemConstructorOptions } from 'electron';
23
import * as ElectronStore from 'electron-store';
34

@@ -49,8 +50,16 @@ export const getMenu = (browserWindows: Electron.BrowserWindow[]) => {
4950
role: 'help',
5051
submenu: [
5152
{
52-
label: 'Learn More',
53-
click () { require('electron').shell.openExternal('https://httptoolkit.tech') }
53+
label: 'Open documentation',
54+
click () { require('electron').shell.openExternal('https://httptoolkit.tech/docs') }
55+
},
56+
{
57+
label: 'Share your feedback',
58+
click () { require('electron').shell.openExternal('https://github.com/httptoolkit/httptoolkit/issues/new/choose') }
59+
},
60+
{
61+
label: 'View HTTP Toolkit logs',
62+
click () { require('electron').shell.showItemInFolder(path.join(app.getPath('logs'), 'last-run.log')) }
5463
}
5564
]
5665
}

0 commit comments

Comments
 (0)