diff src/core/config.cpp @ 77:6f7385bd334c

*: update formatted all source files, no more subclassing QThread... many other changes :)
author Paper <mrpapersonic@gmail.com>
date Fri, 06 Oct 2023 06:18:53 -0400
parents 327568ad9be9
children
line wrap: on
line diff
--- a/src/core/config.cpp	Wed Oct 04 01:46:33 2023 -0400
+++ b/src/core/config.cpp	Fri Oct 06 06:18:53 2023 -0400
@@ -53,8 +53,8 @@
 	std::ifstream config(cfg_path.GetPath(), std::ifstream::in);
 	auto config_js = nlohmann::json::parse(config);
 	service = StringToService[JSON::GetString(config_js, "/General/Service"_json_pointer)];
-	anime_list.language = StringToAnimeTitleMap[JSON::GetString(
-	    config_js, "/Anime List/Display only aired episodes"_json_pointer, "Romaji")];
+	anime_list.language =
+	    StringToAnimeTitleMap[JSON::GetString(config_js, "/Anime List/Title language"_json_pointer, "Romaji")];
 	anime_list.display_aired_episodes =
 	    JSON::GetBoolean(config_js, "/Anime List/Display only aired episodes"_json_pointer, true);
 	anime_list.display_available_episodes =
@@ -76,7 +76,7 @@
 	if (!cfg_path.GetParent().Exists())
 		cfg_path.GetParent().CreateDirectories();
 	std::ofstream config(cfg_path.GetPath(), std::ofstream::out | std::ofstream::trunc);
-	// clang-format off
+	/* clang-format off */
 	nlohmann::json config_js = {
 		{"General",	{
 			{"Service", ServiceToString[service]}
@@ -99,7 +99,7 @@
 			{"Theme", ThemeToString[theme]}
 		}}
 	};
-	// clang-format on
+	/* clang-format on */
 	config << std::setw(4) << config_js << std::endl;
 	config.close();
 	return 0;