Do not override the channels list if one of the account has enterprise.
authorCamila Ayres <hello@camilasan.com>
Thu, 17 Oct 2024 14:51:27 +0000 (16:51 +0200)
committerCamila Ayres <hello@camilasan.com>
Thu, 31 Oct 2024 12:06:03 +0000 (13:06 +0100)
Maintain stable and enterprise.

Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/generalsettings.cpp

index 264bca62b17b6838a82f988cf2a57d35224188cc..1152342edeba6108be94520f9691dd0fa2f462b7 100644 (file)
@@ -293,7 +293,7 @@ void GeneralSettings::loadMiscSettings()
 #if defined(BUILD_UPDATER)
 void GeneralSettings::loadUpdateChannelsList() {
     ConfigFile cfgFile;
-    if (_currentUpdateChannelList != cfgFile.validUpdateChannels()) {
+    if (_currentUpdateChannelList != cfgFile.validUpdateChannels() && !cfgFile.serverHasValidSubscription()) {
         _currentUpdateChannelList = cfgFile.validUpdateChannels();
         _ui->updateChannel->clear();
         _ui->updateChannel->addItems(_currentUpdateChannelList);