From d20664f90a84da691baeae5fb55bb28f409ed577 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 6 May 2023 12:24:01 -0400 Subject: Automatically check for updates --- src/tracker_config.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tracker_config.cpp') diff --git a/src/tracker_config.cpp b/src/tracker_config.cpp index 96bb60a..c09d241 100644 --- a/src/tracker_config.cpp +++ b/src/tracker_config.cpp @@ -12,6 +12,8 @@ void TrackerConfig::Load() { ap_server = file["ap_server"].as(); ap_player = file["ap_player"].as(); ap_password = file["ap_password"].as(); + asked_to_check_for_updates = file["asked_to_check_for_updates"].as(); + should_check_for_updates = file["should_check_for_updates"].as(); } catch (const std::exception&) { // It's fine if the file can't be loaded. } @@ -22,6 +24,8 @@ void TrackerConfig::Save() { output["ap_server"] = ap_server; output["ap_player"] = ap_player; output["ap_password"] = ap_password; + output["asked_to_check_for_updates"] = asked_to_check_for_updates; + output["should_check_for_updates"] = should_check_for_updates; std::ofstream filewriter(CONFIG_FILE_NAME); filewriter << output; -- cgit 1.4.1