summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/StartPage.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-29 09:13:08 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-29 12:20:19 -0800
commitb92c2d280cddff8a5f0fa53bafa8d57cb52f4603 (patch)
treeb848fffc7d8d4d2f9faaebcf88202097c67aa944 /mobile-widgets/qml/StartPage.qml
parent5b3ecea4a0b9bd0f65d78592fb923d5270286354 (diff)
downloadsubsurface-b92c2d280cddff8a5f0fa53bafa8d57cb52f4603.tar.gz
mobile-widgets/qml: remove prefs.showPin
prefs.showpin is the same as PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NEED_TO_VERIFY but is actually implemented as a separate variable. Removing showPin in order to limit use of QMLPrefs, which is the overall goal. 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.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/StartPage.qml b/mobile-widgets/qml/StartPage.qml
index 1237208a9..d7eb151f9 100644
--- a/mobile-widgets/qml/StartPage.qml
+++ b/mobile-widgets/qml/StartPage.qml
@@ -27,7 +27,7 @@ Kirigami.ScrollablePage {
}
Controls.Label {
id: explanationTextBasic
- visible: !prefs.showPin
+ visible: PrefCloudStorage.cloud_verification_status !== CloudStatus.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: prefs.showPin
+ visible: PrefCloudStorage.cloud_verification_status === CloudStatus.CS_NEED_TO_VERIFY
Layout.fillWidth: true
Layout.margins: Kirigami.Units.gridUnit
Layout.topMargin: Kirigami.Units.gridUnit * 3