Skip to content

Commit

Permalink
Fix updates check
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Mar 31, 2024
1 parent 4d7f2c9 commit 03d31eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/main/services/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ async function checkForUpdateInternal() {
__currentUpdate = null;
__readyUpdate = null;
__updateErrored = false;
const usePrerelease = await getConfigValue("prereleaseUpdates");
logInfo(`Using pre-release channel for updates: ${usePrerelease ? "yes" : "no"}`);
autoUpdater.allowPrerelease = usePrerelease;
const prefs = await getConfigValue("preferences");
logInfo(`Using pre-release channel for updates: ${prefs.prereleaseUpdates ? "yes" : "no"}`);
autoUpdater.allowPrerelease = prefs.prereleaseUpdates;
autoUpdater.autoDownload = false;
autoUpdater.setFeedURL({
provider: "github",
Expand Down

0 comments on commit 03d31eb

Please sign in to comment.