cleanup
This commit is contained in:
parent
18e9a713a9
commit
026a72f4df
|
@ -89,10 +89,10 @@ void SettingsDialog::load()
|
|||
if (SnoreCore::instance().value("PluginTypes", LOCAL_SETTING).value<SnorePlugin::PluginTypes>() & SnorePlugin::BACKEND) {
|
||||
ui->primaryBackendComboBox->clear();
|
||||
QStringList list = SnoreCore::instance().pluginNames(SnorePlugin::BACKEND);
|
||||
ui->primaryBackendComboBox->setVisible(true);
|
||||
ui->primaryBackendLabel->setVisible(true);
|
||||
ui->primaryBackendComboBox->addItems(list);
|
||||
ui->primaryBackendComboBox->setCurrentIndex(list.indexOf(SnoreCore::instance().value("PrimaryBackend", LOCAL_SETTING).toString()));
|
||||
ui->primaryBackendComboBox->setVisible(true);
|
||||
ui->primaryBackendLabel->setVisible(true);
|
||||
} else {
|
||||
ui->primaryBackendComboBox->setVisible(false);
|
||||
ui->primaryBackendLabel->setVisible(false);
|
||||
|
|
Loading…
Reference in New Issue