summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-mobile/qmlmanager.cpp4
-rw-r--r--subsurface-core/qthelper.cpp1
2 files changed, 5 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();
}
diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp
index e103b44e5..c45e86388 100644
--- a/subsurface-core/qthelper.cpp
+++ b/subsurface-core/qthelper.cpp
@@ -1491,6 +1491,7 @@ void loadPreferences()
}
GET_INT("cloud_verification_status", cloud_verification_status);
GET_BOOL("cloud_background_sync", cloud_background_sync);
+ GET_BOOL("git_local_only", git_local_only);
// creating the git url here is simply a convenience when C code wants
// to compare against that git URL - it's always derived from the base URL