summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/CloudCredentials.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2020-01-05 17:08:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-18 17:35:16 -0800
commit93c3a18db7142e9d6afeed4fde17196776e0d422 (patch)
tree5c1aeebcf0566960d8e593a99880037793925eb3 /mobile-widgets/qml/CloudCredentials.qml
parentc93b76eee663d5b000dcd9f0a3e7b4fa12b99b9b (diff)
downloadsubsurface-93c3a18db7142e9d6afeed4fde17196776e0d422.tar.gz
mobile-widgets/qml: use strongly typed CloudStatus
Replace CloudStatus.<value> with backend.<value> as part of making enum sharing between C/C++ and QML more robust. Replace PrefCloudStorage.verification_status with backend.verification_status to use the strongly typed function. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/CloudCredentials.qml')
-rw-r--r--mobile-widgets/qml/CloudCredentials.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml
index 36c20b71a..655eaab54 100644
--- a/mobile-widgets/qml/CloudCredentials.qml
+++ b/mobile-widgets/qml/CloudCredentials.qml
@@ -13,7 +13,7 @@ Item {
property string username: login.text;
property string password: password.text;
- property bool showPin: (PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NEED_TO_VERIFY)
+ property bool showPin: (Backend.cloud_verification_status === Enums.CS_NEED_TO_VERIFY)
ColumnLayout {
id: outerLayout
@@ -110,7 +110,7 @@ Item {
id: cancelpin
text: qsTr("Cancel")
onClicked: {
- PrefCloudStorage.cloud_verification_status = CloudStatus.CS_UNKNOWN
+ Backend.cloud_verification_status = Enums.CS_UNKNOWN
manager.startPageText = qsTr("Check credentials...");
}
}
@@ -139,8 +139,8 @@ Item {
onClicked: {
manager.setGitLocalOnly(true)
PrefCloudStorage.cloud_auto_sync = false
- manager.oldStatus = PrefCloudStorage.cloud_verification_status
- PrefCloudStorage.cloud_verification_status = CloudStatus.CS_NOCLOUD
+ manager.oldStatus = Backend.cloud_verification_status
+ Backend.cloud_verification_status = Enums.CS_NOCLOUD
manager.saveCloudCredentials("", "", "")
manager.openNoCloudRepo()
}