When adding a new account, the combo box would list each update channels twice.
Signed-off-by: Camila Ayres <hello@camilasan.com>
#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);