Browse Source

refactor: dock.hide

pull/192/head
xiaojunnuo 3 years ago
parent
commit
7f499db40b
  1. 7
      packages/gui/src/background.js

7
packages/gui/src/background.js

@ -74,7 +74,7 @@ function setTray () {
// 单击托盘小图标显示应用
appTray.on('click', () => {
// 显示主程序
win.show()
showWin()
})
appTray.on('right-click', function (event, bounds) {
@ -108,7 +108,6 @@ function showWin () {
if (win) {
win.show()
}
app.dock.show()
}
@ -218,7 +217,7 @@ if (!isFirstInstance) {
app.on('second-instance', (event, commandLine, workingDirectory) => {
log.info('new app started', commandLine)
if (win) {
win.show()
showWin()
win.focus()
}
})
@ -239,7 +238,7 @@ if (!isFirstInstance) {
if (win == null) {
createWindow()
} else {
win.show()
showWin()
}
})

Loading…
Cancel
Save