fix: Update Channel setting not persisting after save

The Update Channel dropdown reverted to "stable" after saving because the
frontend was overwriting the user's saved preference with the running
version's channel. Now the saved setting takes priority over the detected
channel.

Related to #738
This commit is contained in:
rcourtman 2025-12-02 03:03:51 +00:00
parent ae54cfad8c
commit 99a6debd3a

View file

@ -2040,7 +2040,9 @@ const Settings: Component<SettingsProps> = (props) => {
setVersionInfo(version);
// Also set it in the store so it's available globally
updateStore.checkForUpdates(); // This will load version info too
if (version.channel) {
// Only use version.channel as fallback if user hasn't configured a preference
// The user's saved updateChannel preference should take priority
if (version.channel && !systemSettings.updateChannel) {
setUpdateChannel(version.channel as 'stable' | 'rc');
}
} catch (error) {