aboutsummaryrefslogtreecommitdiff
path: root/src/Config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Config.cpp')
-rw-r--r--src/Config.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Config.cpp b/src/Config.cpp
index 7f71f21..31da8f0 100644
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -133,9 +133,9 @@ namespace QuickMedia {
if(use_system_fonts_json.isBool())
config->use_system_fonts = use_system_fonts_json.asBool();
- const Json::Value &use_system_mpv_config = json_root["use_system_mpv_config"];
- if(use_system_mpv_config.isBool())
- config->use_system_mpv_config = use_system_mpv_config.asBool();
+ const Json::Value &use_system_mpv_config_json = json_root["use_system_mpv_config"];
+ if(use_system_mpv_config_json.isBool())
+ config->use_system_mpv_config = use_system_mpv_config_json.asBool();
const Json::Value &theme_json = json_root["theme"];
if(theme_json.isString())
@@ -156,6 +156,14 @@ namespace QuickMedia {
const Json::Value &local_manga_directory_json = json_root["local_manga_directory"];
if(local_manga_directory_json.isString())
config->local_manga_directory = local_manga_directory_json.asString();
+
+ const Json::Value &local_manga_sort_by_name_json = json_root["local_manga_sort_by_name"];
+ if(local_manga_sort_by_name_json.isBool())
+ config->local_manga_sort_by_name = local_manga_sort_by_name_json.asBool();
+
+ const Json::Value &local_manga_sort_chapters_by_name_json = json_root["local_manga_sort_chapters_by_name"];
+ if(local_manga_sort_chapters_by_name_json.isBool())
+ config->local_manga_sort_chapters_by_name = local_manga_sort_chapters_by_name_json.asBool();
}
const Config& get_config() {