Skip to content

Commit

Permalink
Merge pull request #469 from justinlampley/FixAutoUpdater
Browse files Browse the repository at this point in the history
Fix auto updater issue caused by event timing
  • Loading branch information
jurgelenas authored Jan 10, 2023
2 parents 92989b3 + 884e17b commit 9497fb9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,12 @@ app
.catch((err: Error) => {
logger.error(`createWindow error ${err}`);
handleFatalError(err);
})
.then(() => {
return updater?.checkForUpdates();
})
.catch((err: Error) => {
logger.error(`Auto update error ${err}`);
});

app.on('activate', () => {
Expand All @@ -407,10 +413,6 @@ app.on('activate', () => {
}
});

app.on('ready', async () => {
updater?.checkForUpdates();
});

/*
Handle IPC requests from the User Interface
*/
Expand Down

0 comments on commit 9497fb9

Please sign in to comment.