summaryrefslogtreecommitdiff
path: root/platform/glfw/settings_json.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-07-26 16:10:15 +0200
committerKonstantin Käfer <mail@kkaefer.com>2017-09-22 10:57:15 +0200
commit796386473e8f0f361a69e6dcf0f85fa6a656ccc3 (patch)
tree12b2f406e75a7680f23441751f0c830f05e79b5f /platform/glfw/settings_json.cpp
parent3a8dc12a8e9396ff54b06d5207164a97968fd8a5 (diff)
downloadqtlocation-mapboxgl-796386473e8f0f361a69e6dcf0f85fa6a656ccc3.tar.gz
[glfw] Save/Restore online status of DefaultFileSource
Diffstat (limited to 'platform/glfw/settings_json.cpp')
-rw-r--r--platform/glfw/settings_json.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/glfw/settings_json.cpp b/platform/glfw/settings_json.cpp
index 2ba1038dc7..5b6aa4e0da 100644
--- a/platform/glfw/settings_json.cpp
+++ b/platform/glfw/settings_json.cpp
@@ -14,6 +14,7 @@ void Settings_JSON::load() {
file >> bearing;
file >> pitch;
file >> debug;
+ file >> online;
}
}
@@ -26,6 +27,7 @@ void Settings_JSON::save() {
file << bearing << std::endl;
file << pitch << std::endl;
file << debug << std::endl;
+ file << online << std::endl;
}
}
@@ -36,6 +38,7 @@ void Settings_JSON::clear() {
bearing = 0;
pitch = 0;
debug = 0;
+ online = true;
}
} // namespace mbgl