Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dromara/electron-egg
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoshuaixing committed Mar 7, 2024
2 parents cacab21 + 9c153a8 commit 77e1927
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions electron/addon/tray/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class TrayAddon {
this.tray.setToolTip(cfg.title);
const contextMenu = Menu.buildFromTemplate(trayMenuTemplate);
this.tray.setContextMenu(contextMenu);
this.tray.on('double-click', () => {
mainWindow.show()
})
}
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build-w-32": "electron-builder --config=./electron/config/builder.json -w=nsis --ia32",
"build-w-64": "electron-builder --config=./electron/config/builder.json -w=nsis --x64",
"build-w-arm64": "electron-builder --config=./electron/config/builder.json -w=nsis --arm64",
"build-we": "electron-builder --config=./electron/config/builder.json -w=portable --x64",
"build-wz": "electron-builder --config=./electron/config/builder.json -w=7z --x64",
"build-wz-32": "electron-builder --config=./electron/config/builder.json -w=7z --ia32",
"build-wz-64": "electron-builder --config=./electron/config/builder.json -w=7z --x64",
Expand Down Expand Up @@ -59,4 +60,4 @@
"electron-updater": "^5.3.0",
"lodash": "^4.17.21"
}
}
}

0 comments on commit 77e1927

Please sign in to comment.