summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-01-03 18:03:28 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-01-06 10:46:07 -0800
commit59526e948aea42b977a3976293fbfdfe561dec97 (patch)
treea603c538b2bfb54731e9519a0190cd2fffa8da67 /core/save-git.c
parentb3901aa8f90499ee2a34efdddc2463105afc53f1 (diff)
downloadsubsurface-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/save-git.c')
-rw-r--r--core/save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c
index 1000f78a1..6eab07580 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -1273,7 +1273,7 @@ int do_git_save(git_repository *repo, const char *branch, const char *remote, bo
return report_error("creating commit failed");
/* now sync the tree with the remote server */
- if (remote && prefs.cloud_background_sync && !prefs.git_local_only)
+ if (remote && !prefs.git_local_only)
return sync_with_remote(repo, remote, branch, RT_HTTPS);
return 0;
}