Add menu separators in view and help menus (#3802)

This commit is contained in:
Johan Hammar
2021-07-11 09:28:35 +02:00
committed by GitHub
parent 92e0970281
commit 60ef1a83f9

View File

@@ -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,
});