refactor: dev tools

pull/192/head
xiaojunnuo 2021-11-21 22:14:01 +08:00
parent 70766b7ae5
commit 04f02c7dfa
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,14 @@ function setTray () {
// 通常被添加到一个 context menu 上.
// 系统托盘右键菜单
const trayMenuTemplate = [
{
// 系统托盘图标目录
label: 'DevTools',
click: () => {
win.webContents.openDevTools()
}
},
{
// 系统托盘图标目录
label: '退出',