settings: Add option to set BCAT backend

This commit is contained in:
Zach Hilman 2019-04-28 18:44:46 -04:00
parent 532ec459b8
commit 647992e666
6 changed files with 34 additions and 0 deletions

View file

@ -525,6 +525,13 @@ void Config::ReadDebuggingValues() {
qt_config->endGroup();
}
void Config::ReadServiceValues() {
qt_config->beginGroup("Services");
Settings::values.bcat_backend = ReadSetting("bcat_backend", "boxcat").toString().toStdString();
Settings::values.bcat_boxcat_local = ReadSetting("bcat_boxcat_local", false).toBool();
qt_config->endGroup();
}
void Config::ReadDisabledAddOnValues() {
const auto size = qt_config->beginReadArray(QStringLiteral("DisabledAddOns"));
@ -769,6 +776,7 @@ void Config::ReadValues() {
ReadMiscellaneousValues();
ReadDebuggingValues();
ReadWebServiceValues();
ReadServiceValues();
ReadDisabledAddOnValues();
ReadUIValues();
}
@ -866,6 +874,7 @@ void Config::SaveValues() {
SaveMiscellaneousValues();
SaveDebuggingValues();
SaveWebServiceValues();
SaveServiceValues();
SaveDisabledAddOnValues();
SaveUIValues();
}
@ -963,6 +972,13 @@ void Config::SaveDebuggingValues() {
qt_config->endGroup();
}
void Config::SaveServiceValues() {
qt_config->beginGroup("Services");
WriteSetting("bcat_backend", QString::fromStdString(Settings::values.bcat_backend), "null");
WriteSetting("bcat_boxcat_local", Settings::values.bcat_boxcat_local, false);
qt_config->endGroup();
}
void Config::SaveDisabledAddOnValues() {
qt_config->beginWriteArray(QStringLiteral("DisabledAddOns"));