|
@@ -56,7 +56,10 @@ function createWindow() { |
|
|
|
|
|
|
|
|
// 创建系统通知区菜单 |
|
|
// 创建系统通知区菜单 |
|
|
tray = new Tray(path.join(__dirname, 'file_word.png')); |
|
|
tray = new Tray(path.join(__dirname, 'file_word.png')); |
|
|
const contextMenu = Menu.buildFromTemplate([ |
|
|
|
|
|
|
|
|
const contextMenu = Menu.buildFromTemplate([ |
|
|
|
|
|
{label: '最大化', click: () => { mainWindow.maximize()}}, |
|
|
|
|
|
{label: '最小化', click: () => {mainWindow.minimize()}}, |
|
|
|
|
|
{label: '还原', click: () => {mainWindow.restore()}}, |
|
|
{label: '退出', click: () => {mainWindow.destroy()}},//我们需要在这里有一个真正的退出(这里直接强制退出) |
|
|
{label: '退出', click: () => {mainWindow.destroy()}},//我们需要在这里有一个真正的退出(这里直接强制退出) |
|
|
]) |
|
|
]) |
|
|
tray.setToolTip('LOCKING探索者') |
|
|
tray.setToolTip('LOCKING探索者') |
|
|