mirror of
https://github.com/blossom-editor/blossom
synced 2024-11-17 14:39:21 +08:00
pref: 优化 windows 托盘菜单
This commit is contained in:
parent
881f65ad74
commit
0eaadd5dca
@ -168,6 +168,8 @@ const initTray = () => {
|
|||||||
console.log('1. 创建托盘 Tray')
|
console.log('1. 创建托盘 Tray')
|
||||||
tray = new Tray(icon)
|
tray = new Tray(icon)
|
||||||
const contextMenu = Menu.buildFromTemplate([
|
const contextMenu = Menu.buildFromTemplate([
|
||||||
|
{ label: 'Blossom 官网 ', click: () => shell.openExternal('https://www.wangyunf.com/blossom-doc/index') },
|
||||||
|
{ type: 'separator' },
|
||||||
{ label: '显示', click: () => mainWindow!.show() },
|
{ label: '显示', click: () => mainWindow!.show() },
|
||||||
{ label: '退出', click: () => app.quit() }
|
{ label: '退出', click: () => app.quit() }
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user