From 58c8c32a58a6ff7466ab3a8955ace8f5746ee642 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Thu, 17 Nov 2022 23:50:13 +0100 Subject: [PATCH] we are no longer blocked if error occur durring update downloading --- src/renderer/Launcher.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/Launcher.tsx b/src/renderer/Launcher.tsx index 25f7f48b..45a9ceb2 100644 --- a/src/renderer/Launcher.tsx +++ b/src/renderer/Launcher.tsx @@ -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();