From 441628bac8ef64410863f601608d495eba16ab81 Mon Sep 17 00:00:00 2001 From: Franco Montenegro Date: Wed, 22 Jun 2022 18:34:24 -0300 Subject: [PATCH] Small fix for allowPrerelease prop in autoUpdater. --- electron/index.js | 1 + ui/index.jsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/electron/index.js b/electron/index.js index b7143b87a..9671a6eb2 100644 --- a/electron/index.js +++ b/electron/index.js @@ -34,6 +34,7 @@ try { upgradeDisabled = false; } autoUpdater.autoDownload = !upgradeDisabled; +autoUpdater.allowPrerelease = false; // This is set to true if an auto update has been downloaded through the Electron // auto-update system and is ready to install. If the user declined an update earlier, diff --git a/ui/index.jsx b/ui/index.jsx index 07bed7a94..b31b4e418 100644 --- a/ui/index.jsx +++ b/ui/index.jsx @@ -213,6 +213,8 @@ function AppWrapper() { const enabled = makeSelectClientSetting(SETTINGS.ENABLE_PRERELEASE_UPDATES)(state); if (enabled) { autoUpdater.allowPrerelease = true; + } else { + autoUpdater.allowPrerelease = false; } } }, [persistDone]);