From fdef870e8330ab88a6feca90c4de0f34b2f2e884 Mon Sep 17 00:00:00 2001 From: Shidorien Date: Thu, 21 Dec 2023 21:17:00 +0100 Subject: [PATCH] remove unnecessary code --- src/renderer/windows/Launcher.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/windows/Launcher.tsx b/src/renderer/windows/Launcher.tsx index d3416e04..62d60a16 100644 --- a/src/renderer/windows/Launcher.tsx +++ b/src/renderer/windows/Launcher.tsx @@ -21,13 +21,12 @@ export default function Launcher() { useEffect(() => { updaterService.isUpdateAvailable().then(available => { if (!available) { - updaterService.setHaveBeenUpdated(false); + return windowService.openThenCloseAll("index.html"); } setText("auto-update.downloading"); updaterService.downloadUpdate().then(installed => { if (!installed) { - updaterService.setHaveBeenUpdated(true); return windowService.openThenCloseAll("index.html"); } updaterService.quitAndInstall();