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', () => { autoUpdater.on('update-downloaded', () => {
console.log('Update downloaded; will install in 5 seconds') console.log('Update downloaded')
setTimeout(function () { autoUpdater.quitAndInstall()
autoUpdater.quitAndInstall()
}, 5000)
}) })
function createWindow() { function createWindow() {