remove unnecessary code

This commit is contained in:
Shidorien
2023-12-21 21:17:00 +01:00
parent 7d58fec63b
commit fdef870e83
+1 -2
View File
@@ -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();