mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile-widgets: credentialStatus() -> cloud_verification_status()
Replace all credentialStatus() with cloud_verification_status() Where both prefs.credentialStatus and PrefCloudStorage.cloud_verification_status are being set, remove prefs.credentialStatus. These replacements are valid since credentialStatus() is a simple envelope over cloud_verification_status(). Also remove qmlPrefs::credentialStatus() from qmlPrefs (mostly to ensure no replacements was forgotten). Signed-off-by: Jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
beacc00f2d
commit
783332561a
5 changed files with 11 additions and 25 deletions
|
@ -110,7 +110,6 @@ Item {
|
|||
text: qsTr("Cancel")
|
||||
onClicked: {
|
||||
PrefCloudStorage.cloud_verification_status = CloudStatus.CS_UNKNOWN
|
||||
prefs.cloudCredentials = CloudStatus.CS_UNKNOWN
|
||||
manager.startPageText = qsTr("Check credentials...");
|
||||
prefs.showPin = false;
|
||||
}
|
||||
|
@ -140,7 +139,8 @@ Item {
|
|||
onClicked: {
|
||||
manager.setGitLocalOnly(true)
|
||||
PrefCloudStorage.cloud_auto_sync = false
|
||||
prefs.credentialStatus = CloudStatus.CS_NOCLOUD
|
||||
prefs.oldStatus = PrefCloudStorage.cloud_verification_status
|
||||
PrefCloudStorage.cloud_verification_status = CloudStatus.CS_NOCLOUD
|
||||
manager.saveCloudCredentials("", "", "")
|
||||
manager.openNoCloudRepo()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue