we are no longer blocked if error occur durring update downloading

This commit is contained in:
MathieuG-P
2022-11-17 23:50:13 +01:00
parent 69c4202899
commit 58c8c32a58
+4 -1
View File
@@ -30,7 +30,10 @@ export default function Launcher() {
updaterService.isUpdateAvailable().then(available => {
if(!available){ return windowService.openThenCloseAll("index.html"); }
setText("auto-update.downloading");
updaterService.downloadUpdate().then(installed => installed && updaterService.quitAndInstall());
updaterService.downloadUpdate().then(installed => {
if(!installed){ return windowService.openThenCloseAll("index.html"); }
updaterService.quitAndInstall()
});
});
return () => sub.unsubscribe();