From: Camila Ayres Date: Tue, 6 Aug 2024 10:37:43 +0000 (+0200) Subject: Make sure to not repeat the update channels list when loading the settings for a... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~79^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2ab94d54d84c17bce082cfd482f6cf2985ae7070;p=nextcloud-desktop.git 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 --- 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);