From 03d31ebfe83269a02806aed3838b0fcd7ef4e0e3 Mon Sep 17 00:00:00 2001 From: Perry Mitchell Date: Sun, 31 Mar 2024 21:44:22 +0300 Subject: [PATCH] Fix updates check --- source/main/services/update.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/main/services/update.ts b/source/main/services/update.ts index 2cfe2588..1c239534 100644 --- a/source/main/services/update.ts +++ b/source/main/services/update.ts @@ -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",