mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
remove unnecessary code
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user