From 2ab94d54d84c17bce082cfd482f6cf2985ae7070 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Tue, 6 Aug 2024 12:37:43 +0200 Subject: [PATCH] Make sure to not repeat the update channels list when loading the settings for a second account. When adding a new account, the combo box would list each update channels twice. Signed-off-by: Camila Ayres --- src/gui/generalsettings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 2b91b4bc8..7f8d705b7 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -282,6 +282,7 @@ void GeneralSettings::loadMiscSettings() #if defined(BUILD_UPDATER) const auto validUpdateChannels = cfgFile.validUpdateChannels(); + _ui->updateChannel->clear(); _ui->updateChannel->addItems(validUpdateChannels); const auto currentUpdateChannelIndex = validUpdateChannels.indexOf(cfgFile.currentUpdateChannel()); _ui->updateChannel->setCurrentIndex(currentUpdateChannelIndex != -1? currentUpdateChannelIndex : 0);