mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-25 16:19:20 -04:00
Add menu separators in view and help menus (#3802)
This commit is contained in:
1 parent
92e0970281
commit
60ef1a83f9
1 file changed
+12
@@ -271,6 +271,9 @@ export function createWindow() {
|
||||
saveZoomFactor(zoomFactor);
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: 'Toggle Sidebar',
|
||||
click: () => {
|
||||
@@ -335,6 +338,9 @@ export function createWindow() {
|
||||
w.webContents.send('toggle-preferences-shortcuts');
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: `Show App ${MNEMONIC_SYM}Data Folder`,
|
||||
click: () => {
|
||||
@@ -349,6 +355,9 @@ export function createWindow() {
|
||||
shell.showItemInFolder(directory);
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: 'Show Open Source Licenses',
|
||||
click: () => {
|
||||
@@ -410,6 +419,9 @@ export function createWindow() {
|
||||
} else {
|
||||
// @ts-expect-error -- TSCONVERSION type splitting
|
||||
helpMenu.submenu?.push({
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: `${MNEMONIC_SYM}About`,
|
||||
click: aboutMenuClickHandler,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user