mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Merge pull request #6974 from nextcloud/bugfix/update-channels
Make sure to not repeat the update channels list when loading the settings for a second account.
This commit is contained in:
commit
790f54d2f5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue