Merge branch 'master' of github.com:dromara/electron-egg

This commit is contained in:
gaoshuaixing
2024-03-07 16:51:17 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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()
})
}
}