소스 검색

完善托盘菜单

master
kim131 4 년 전
부모
커밋
21acad7757
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      src/main/index.js

+ 4
- 1
src/main/index.js 파일 보기

@@ -56,7 +56,10 @@ function createWindow() {

// 创建系统通知区菜单
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()}},//我们需要在这里有一个真正的退出(这里直接强制退出)
])
tray.setToolTip('LOCKING探索者')


불러오는 중...
취소
저장