mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-19 23:52:06 +00:00
fix: catch close error
This commit is contained in:
parent
994dabfa82
commit
e2e06c4ed7
1 changed files with 4 additions and 2 deletions
|
|
@ -33,8 +33,10 @@ export default class Updater {
|
|||
install (forceRunAfter = false) {
|
||||
if (this.hasUpdate) {
|
||||
setImmediate(() => {
|
||||
this.window.close()
|
||||
this.torrentWindow.close()
|
||||
try {
|
||||
this.window.close()
|
||||
this.torrentWindow.close()
|
||||
} catch (e) {}
|
||||
autoUpdater.quitAndInstall(true, forceRunAfter)
|
||||
})
|
||||
if (process.platform === 'darwin') shell.openExternal('https://github.com/NoCrypt/migu/releases/latest')
|
||||
|
|
|
|||
Loading…
Reference in a new issue