Skip to content

Commit

Permalink
Fix logic for initial load of update channels and priority for user w…
Browse files Browse the repository at this point in the history
…ith subscription.

Signed-off-by: Camila Ayres <[email protected]>
  • Loading branch information
camilasan committed Oct 17, 2024
1 parent 0421f22 commit cd93ec3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/generalsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,9 @@ void GeneralSettings::loadMiscSettings()
#if defined(BUILD_UPDATER)
void GeneralSettings::loadUpdateChannelsList() {
ConfigFile cfgFile;
if (_currentUpdateChannelList != cfgFile.validUpdateChannels() && !cfgFile.serverHasValidSubscription()) {
_currentUpdateChannelList = cfgFile.validUpdateChannels();
const auto validUpdateChannels = cfgFile.validUpdateChannels();
if (_currentUpdateChannelList.isEmpty() || (_currentUpdateChannelList != validUpdateChannels && !cfgFile.serverHasValidSubscription())) {
_currentUpdateChannelList = validUpdateChannels;
_ui->updateChannel->clear();
_ui->updateChannel->addItems(_currentUpdateChannelList);
const auto currentUpdateChannelIndex = _currentUpdateChannelList.indexOf(cfgFile.currentUpdateChannel());
Expand Down

0 comments on commit cd93ec3

Please sign in to comment.