diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-17 10:11:41 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-11-17 10:11:41 -0500 |
commit | a9bc708c7eeeada4c59952ce71aa071175f8f27d (patch) | |
tree | b55d7ae50b2e96a44319ba7ec97cebe32fe2febf /src/tracker_config.cpp | |
parent | 2ee15755735ff6243d3e3b1c2ade4d9bbe0b6dc6 (diff) | |
download | lingo-ap-tracker-a9bc708c7eeeada4c59952ce71aa071175f8f27d.tar.gz lingo-ap-tracker-a9bc708c7eeeada4c59952ce71aa071175f8f27d.tar.bz2 lingo-ap-tracker-a9bc708c7eeeada4c59952ce71aa071175f8f27d.zip |
Added hybrid areas and settings dialog
Diffstat (limited to 'src/tracker_config.cpp')
-rw-r--r-- | src/tracker_config.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tracker_config.cpp b/src/tracker_config.cpp index c09d241..9318091 100644 --- a/src/tracker_config.cpp +++ b/src/tracker_config.cpp | |||
@@ -14,6 +14,7 @@ void TrackerConfig::Load() { | |||
14 | ap_password = file["ap_password"].as<std::string>(); | 14 | ap_password = file["ap_password"].as<std::string>(); |
15 | asked_to_check_for_updates = file["asked_to_check_for_updates"].as<bool>(); | 15 | asked_to_check_for_updates = file["asked_to_check_for_updates"].as<bool>(); |
16 | should_check_for_updates = file["should_check_for_updates"].as<bool>(); | 16 | should_check_for_updates = file["should_check_for_updates"].as<bool>(); |
17 | hybrid_areas = file["hybrid_areas"].as<bool>(); | ||
17 | } catch (const std::exception&) { | 18 | } catch (const std::exception&) { |
18 | // It's fine if the file can't be loaded. | 19 | // It's fine if the file can't be loaded. |
19 | } | 20 | } |
@@ -26,6 +27,7 @@ void TrackerConfig::Save() { | |||
26 | output["ap_password"] = ap_password; | 27 | output["ap_password"] = ap_password; |
27 | output["asked_to_check_for_updates"] = asked_to_check_for_updates; | 28 | output["asked_to_check_for_updates"] = asked_to_check_for_updates; |
28 | output["should_check_for_updates"] = should_check_for_updates; | 29 | output["should_check_for_updates"] = should_check_for_updates; |
30 | output["hybrid_areas"] = hybrid_areas; | ||
29 | 31 | ||
30 | std::ofstream filewriter(CONFIG_FILE_NAME); | 32 | std::ofstream filewriter(CONFIG_FILE_NAME); |
31 | filewriter << output; | 33 | filewriter << output; |