summaryrefslogtreecommitdiff
path: root/src/frontend_common/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend_common/config.cpp')
-rw-r--r--src/frontend_common/config.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp
index af6b10db6..2bebfeef9 100644
--- a/src/frontend_common/config.cpp
+++ b/src/frontend_common/config.cpp
@@ -401,6 +401,14 @@ void Config::ReadNetworkValues() {
401 EndGroup(); 401 EndGroup();
402} 402}
403 403
404void Config::ReadLibraryAppletValues() {
405 BeginGroup(Settings::TranslateCategory(Settings::Category::LibraryApplet));
406
407 ReadCategory(Settings::Category::LibraryApplet);
408
409 EndGroup();
410}
411
404void Config::ReadValues() { 412void Config::ReadValues() {
405 if (global) { 413 if (global) {
406 ReadDataStorageValues(); 414 ReadDataStorageValues();
@@ -410,6 +418,7 @@ void Config::ReadValues() {
410 ReadServiceValues(); 418 ReadServiceValues();
411 ReadWebServiceValues(); 419 ReadWebServiceValues();
412 ReadMiscellaneousValues(); 420 ReadMiscellaneousValues();
421 ReadLibraryAppletValues();
413 } 422 }
414 ReadControlValues(); 423 ReadControlValues();
415 ReadCoreValues(); 424 ReadCoreValues();
@@ -511,6 +520,7 @@ void Config::SaveValues() {
511 SaveNetworkValues(); 520 SaveNetworkValues();
512 SaveWebServiceValues(); 521 SaveWebServiceValues();
513 SaveMiscellaneousValues(); 522 SaveMiscellaneousValues();
523 SaveLibraryAppletValues();
514 } else { 524 } else {
515 LOG_DEBUG(Config, "Saving only generic configuration values"); 525 LOG_DEBUG(Config, "Saving only generic configuration values");
516 } 526 }
@@ -691,6 +701,14 @@ void Config::SaveWebServiceValues() {
691 EndGroup(); 701 EndGroup();
692} 702}
693 703
704void Config::SaveLibraryAppletValues() {
705 BeginGroup(Settings::TranslateCategory(Settings::Category::LibraryApplet));
706
707 WriteCategory(Settings::Category::LibraryApplet);
708
709 EndGroup();
710}
711
694bool Config::ReadBooleanSetting(const std::string& key, const std::optional<bool> default_value) { 712bool Config::ReadBooleanSetting(const std::string& key, const std::optional<bool> default_value) {
695 std::string full_key = GetFullKey(key, false); 713 std::string full_key = GetFullKey(key, false);
696 if (!default_value.has_value()) { 714 if (!default_value.has_value()) {