diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-01-03 18:03:28 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-01-06 10:46:07 -0800 |
commit | 59526e948aea42b977a3976293fbfdfe561dec97 (patch) | |
tree | a603c538b2bfb54731e9519a0190cd2fffa8da67 /core/subsurface-qt/SettingsObjectWrapper.cpp | |
parent | b3901aa8f90499ee2a34efdddc2463105afc53f1 (diff) | |
download | subsurface-59526e948aea42b977a3976293fbfdfe561dec97.tar.gz |
Remove cloud_background_sync preferences option
The preferences flag cloud_background_sync used to be used heavily in
the mobile code, but is not used there anymore. Now, it is accessed
only in one place, but does not do what it actually says: If it is off,
the remote storage is not synced on save (but will be synced on next
load).
Syncing on save can also be prevented by unchecking the "Cloud online"
menu checkbox. Since the latter seems more logical and general
(support for non-cloud remote git repositories), remove the cloud_background_sync
option.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index e4a9a71d6..7dff976fb 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -983,11 +983,6 @@ short CloudStorageSettings::verificationStatus() const return prefs.cloud_verification_status; } -bool CloudStorageSettings::backgroundSync() const -{ - return prefs.cloud_background_sync; -} - QString CloudStorageSettings::userId() const { return QString(prefs.userid); @@ -1081,17 +1076,6 @@ void CloudStorageSettings::setVerificationStatus(short value) emit verificationStatusChanged(value); } -void CloudStorageSettings::setBackgroundSync(bool value) -{ - if (value == prefs.cloud_background_sync) - return; - QSettings s; - s.beginGroup(group); - s.setValue("cloud_background_sync", value); - prefs.cloud_background_sync = value; - emit backgroundSyncChanged(value); -} - void CloudStorageSettings::setSaveUserIdLocal(bool value) { //TODO: this is not saved on disk? @@ -2300,7 +2284,6 @@ void SettingsObjectWrapper::load() GET_TXT("password", cloud_storage_password); } 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 |