mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
we are no longer blocked if error occur durring update downloading
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user