aboutsummaryrefslogtreecommitdiff
path: root/src/Config.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-06-13 21:36:02 +0200
committerdec05eba <dec05eba@protonmail.com>2023-06-13 21:36:02 +0200
commit613016a48d9b10fb81f5bc54b0bdd463c39f5283 (patch)
tree1c909df3dca6e4551b2da37965c9f94c706d484b /src/Config.cpp
parent3554a838c2318863f59ad4b50a17edc19b5cb94a (diff)
Add option to disable file manager grid view to make midov stop crying
Diffstat (limited to 'src/Config.cpp')
-rw-r--r--src/Config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Config.cpp b/src/Config.cpp
index fe4e984..c79249d 100644
--- a/src/Config.cpp
+++ b/src/Config.cpp
@@ -309,6 +309,11 @@ namespace QuickMedia {
get_json_value(mangadex_json, "allow_hentai", config->mangadex.allow_hentai);
}
+ const Json::Value &file_manager_json = json_root["file_manager"];
+ if(file_manager_json.isObject()) {
+ get_json_value(file_manager_json, "grid_view", config->file_manager.grid_view);
+ }
+
get_json_value(json_root, "use_system_fonts", config->use_system_fonts);
get_json_value(json_root, "use_system_mpv_config", config->use_system_mpv_config);
get_json_value(json_root, "enable_shaders", config->enable_shaders);