mirror of
https://github.com/zhigang1992/devhub.git
synced 2026-06-19 17:53:57 +08:00
[Desktop] Move mode switch from View menu to a new Options menu
This commit is contained in:
@@ -270,6 +270,17 @@ function getMainMenuItems() {
|
||||
const isCurrentWindow = mainWindow.isVisible() && !mainWindow.isMinimized()
|
||||
|
||||
const menuItems: Electron.MenuItemConstructorOptions[] = [
|
||||
{
|
||||
label: 'Options',
|
||||
submenu: [
|
||||
...getModeMenuItems(),
|
||||
{
|
||||
type: 'separator',
|
||||
enabled: isCurrentWindow,
|
||||
},
|
||||
...getOptionsMenuItems(),
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Edit',
|
||||
submenu: [
|
||||
@@ -330,16 +341,6 @@ function getMainMenuItems() {
|
||||
if (focusedWindow) focusedWindow.webContents.toggleDevTools()
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
enabled: isCurrentWindow,
|
||||
},
|
||||
...getModeMenuItems(),
|
||||
{
|
||||
type: 'separator',
|
||||
enabled: isCurrentWindow,
|
||||
},
|
||||
...getOptionsMenuItems(),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user