From 4adfe42a300a597cf8e7036cd189d197b08a7f01 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 17 Nov 2023 11:43:13 -0500 Subject: Show hunt panels option --- src/tracker_config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tracker_config.cpp') diff --git a/src/tracker_config.cpp b/src/tracker_config.cpp index 9318091..11e1cec 100644 --- a/src/tracker_config.cpp +++ b/src/tracker_config.cpp @@ -1,8 +1,9 @@ #include "tracker_config.h" -#include #include +#include + constexpr const char* CONFIG_FILE_NAME = "config.yaml"; void TrackerConfig::Load() { @@ -15,6 +16,7 @@ void TrackerConfig::Load() { asked_to_check_for_updates = file["asked_to_check_for_updates"].as(); should_check_for_updates = file["should_check_for_updates"].as(); hybrid_areas = file["hybrid_areas"].as(); + show_hunt_panels = file["show_hunt_panels"].as(); } catch (const std::exception&) { // It's fine if the file can't be loaded. } @@ -28,6 +30,7 @@ void TrackerConfig::Save() { output["asked_to_check_for_updates"] = asked_to_check_for_updates; output["should_check_for_updates"] = should_check_for_updates; output["hybrid_areas"] = hybrid_areas; + output["show_hunt_panels"] = show_hunt_panels; std::ofstream filewriter(CONFIG_FILE_NAME); filewriter << output; -- cgit 1.4.1