Skip to content

Commit

Permalink
feat: 系统工具栏增加设置入口
Browse files Browse the repository at this point in the history
  • Loading branch information
1943time committed Jan 19, 2024
1 parent 4b38a11 commit adefd6f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ export const registerMenus = () => {
label: zh ? '使用默认APP打开' : 'Open in default app',
click: () => shell.openPath(filePath!),
enabled: !!filePath
},
{type: 'separator'},
{
label: zh ? '设置' : 'Settings',
id: 'settings',
accelerator: `${cmd}+,`,
click: e => {
BrowserWindow.getFocusedWindow()?.webContents.send('openSet')
}
}
]
const showLeading = Menu.getApplicationMenu()?.getMenuItemById('showLeading')
Expand Down

0 comments on commit adefd6f

Please sign in to comment.