修复开启托盘时,可能导致无法自动更新的问题

pull/225/head
lyswhut 2020-05-02 12:43:00 +08:00
parent 43c2dc3dec
commit 9797d98fac
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ module.exports = () => {
handleSendEvent({ type: 'update-downloaded', info })
})
mainOn('quit-update', () => {
global.isQuitting = true
setTimeout(() => {
autoUpdater.quitAndInstall(true, true)
}, 1000)