mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Address PR feedback.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
b9b9813655
commit
60e04bdb8c
@ -299,7 +299,7 @@ void GeneralSettings::loadUpdateChannelsList() {
|
||||
_ui->updateChannel->clear();
|
||||
_ui->updateChannel->addItems(_currentUpdateChannelList);
|
||||
const auto currentUpdateChannelIndex = _currentUpdateChannelList.indexOf(cfgFile.currentUpdateChannel());
|
||||
_ui->updateChannel->setCurrentIndex(currentUpdateChannelIndex != -1? currentUpdateChannelIndex : 0);
|
||||
_ui->updateChannel->setCurrentIndex(currentUpdateChannelIndex != -1 ? currentUpdateChannelIndex : 0);
|
||||
connect(_ui->updateChannel, &QComboBox::currentTextChanged, this, &GeneralSettings::slotUpdateChannelChanged);
|
||||
}
|
||||
}
|
||||
|
||||
@ -140,7 +140,8 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
|
||||
_actionGroupWidgets.insert(generalAction, generalSettings);
|
||||
_actionGroupWidgets.insert(networkAction, networkSettings);
|
||||
|
||||
foreach(auto account, AccountManager::instance()->accounts()) {
|
||||
const auto accountsList = AccountManager::instance()->accounts();
|
||||
for (const auto &account : accountsList) {
|
||||
accountAdded(account.data());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user