Skip to content

Commit

Permalink
左键单击托盘图标时显示窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Sep 25, 2019
1 parent 373fe5d commit 9f97bbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const displayTray = async (icon) => {
tray.setToolTip("AriaNg GUI v" + app.getVersion())
tray.setContextMenu(trayMenu || getTrayMenu())

tray.on("click", () => {
destroyTray()
})

const minimizeNotificationDisabled = await new Promise((resolve) => {
const mainWindow = BrowserWindow.getAllWindows()[0]

Expand Down

0 comments on commit 9f97bbf

Please sign in to comment.