修复开启托盘时,可能导致无法自动更新的问题
parent
43c2dc3dec
commit
9797d98fac
|
@ -111,6 +111,8 @@ module.exports = () => {
|
||||||
handleSendEvent({ type: 'update-downloaded', info })
|
handleSendEvent({ type: 'update-downloaded', info })
|
||||||
})
|
})
|
||||||
mainOn('quit-update', () => {
|
mainOn('quit-update', () => {
|
||||||
|
global.isQuitting = true
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
autoUpdater.quitAndInstall(true, true)
|
autoUpdater.quitAndInstall(true, true)
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
Loading…
Reference in New Issue