fix: delete timeout of update

This commit is contained in:
Artemy 2023-06-21 15:57:25 +03:00
parent 15be7e565f
commit 6e83421b38

View file

@ -38,10 +38,8 @@ autoUpdater.on('download-progress', () => {
})
autoUpdater.on('update-downloaded', () => {
console.log('Update downloaded; will install in 5 seconds')
setTimeout(function () {
console.log('Update downloaded')
autoUpdater.quitAndInstall()
}, 5000)
})
function createWindow() {