mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: factor out syncToCloud [3/3]
After the previous commits, we now have a preference that nicely preserves the state of the UI, and we have the well known git_local_only global, that is used to denote whether we want to use to local repo only, or we want to interact with the online cloud as well. This commit gets rid of the now superfluous syncToCloud logic. Instead we simply set the git_local_only directly. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
87b8155576
commit
a95e658946
5 changed files with 14 additions and 21 deletions
|
|
@ -143,7 +143,7 @@ Item {
|
|||
id: toNoCloudMode
|
||||
text: qsTr("No cloud mode")
|
||||
onClicked: {
|
||||
manager.syncToCloud = false
|
||||
manager.setGitLocalOnly(true)
|
||||
PrefCloudStorage.cloud_auto_sync = false
|
||||
prefs.credentialStatus = CloudStatus.CS_NOCLOUD
|
||||
manager.saveCloudCredentials()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue