Skip to content

Commit

Permalink
chore: added autoUpdater.isUpdaterActive() check in app.on('ready'
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Villa committed Feb 13, 2024
1 parent c3c337d commit 78bf761
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/desktop-app/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ const generateMainWindow = () => {
createWindow();
// createTray();

while(autoUpdater.isUpdaterActive()) {
// do nothing
}

/*
let isShipItStillRunning = true;
let shouldRestartBeforeLaunch = false;
Expand All @@ -350,7 +355,7 @@ const generateMainWindow = () => {
if (shouldRestartBeforeLaunch) {
app.relaunch();
app.exit(0);
}
}*/

buildAutoUpdater(win);
});
Expand Down

0 comments on commit 78bf761

Please sign in to comment.