diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-04-03 18:48:20 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-04 14:18:51 -0700 |
commit | f7564c2b776f93cb1c2af2da26a44ef2eaaec837 (patch) | |
tree | fcc78ca769227ab0b93cce733eb83039db69c64f /qt-mobile | |
parent | bb74144860b14d23f26ebd3dd72e4654342282ae (diff) | |
download | subsurface-f7564c2b776f93cb1c2af2da26a44ef2eaaec837.tar.gz |
QML UI: keep cloud sync enabled state in settings
So if the app gets closed and restarted, it will continue to not sync (or
sync) over the network.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qmlmanager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index ef6ba659d..ab92d9410 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -1049,6 +1049,10 @@ void QMLManager::setSyncToCloud(bool status) m_syncToCloud = status; prefs.git_local_only = !status; prefs.cloud_background_sync = status; + QSettings s; + s.beginGroup("CloudStorage"); + s.setValue("git_local_only", prefs.git_local_only); + s.setValue("cloud_background_sync", prefs.cloud_background_sync); emit syncToCloudChanged(); } |