diff options
author | jan Iversen <jan@casacondor.com> | 2020-01-05 17:08:48 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-18 17:35:16 -0800 |
commit | 93c3a18db7142e9d6afeed4fde17196776e0d422 (patch) | |
tree | 5c1aeebcf0566960d8e593a99880037793925eb3 /mobile-widgets/qml/StartPage.qml | |
parent | c93b76eee663d5b000dcd9f0a3e7b4fa12b99b9b (diff) | |
download | subsurface-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/StartPage.qml')
-rw-r--r-- | mobile-widgets/qml/StartPage.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/StartPage.qml b/mobile-widgets/qml/StartPage.qml index d7eb151f9..3c4db1b73 100644 --- a/mobile-widgets/qml/StartPage.qml +++ b/mobile-widgets/qml/StartPage.qml @@ -27,7 +27,7 @@ Kirigami.ScrollablePage { } Controls.Label { id: explanationTextBasic - visible: PrefCloudStorage.cloud_verification_status !== CloudStatus.CS_NEED_TO_VERIFY + visible: Backend.cloud_verification_status !== Enums.CS_NEED_TO_VERIFY Layout.fillWidth: true Layout.margins: Kirigami.Units.gridUnit Layout.topMargin: Kirigami.Units.gridUnit * 3 @@ -40,7 +40,7 @@ Kirigami.ScrollablePage { } Controls.Label { id: explanationTextPin - visible: PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NEED_TO_VERIFY + visible: Backend.cloud_verification_status === Enums.CS_NEED_TO_VERIFY Layout.fillWidth: true Layout.margins: Kirigami.Units.gridUnit Layout.topMargin: Kirigami.Units.gridUnit * 3 |