diff options
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; |
