summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/StartPage.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-18 11:29:37 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-24 08:25:51 +0900
commita4d299e01e216ef2db61d98d304d091da39ee51d (patch)
tree7d680274c18599ee96c4d8353e30636e6ab01cb1 /mobile-widgets/qml/StartPage.qml
parentab28008679a6100c14ef0a8fb6ebdb7260a7dd35 (diff)
downloadsubsurface-a4d299e01e216ef2db61d98d304d091da39ee51d.tar.gz
mobile-widgets/qml: use showPin/oldStatus consistently
Remove aliases for showPin/oldStatus and reference prefs.showPin/oldStatus directly. showPin/oldStatus are "temporary" variables, that are not saved in settings, so they easily be replaced Signed-off-by: Jan Iversen <jani@apache.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 16fa7cc3a..9c5e1a22c 100644
--- a/mobile-widgets/qml/StartPage.qml
+++ b/mobile-widgets/qml/StartPage.qml
@@ -28,7 +28,7 @@ Kirigami.ScrollablePage {
}
Controls.Label {
id: explanationTextBasic
- visible: !showPin
+ visible: !prefs.showPin
Layout.fillWidth: true
Layout.margins: Kirigami.Units.gridUnit
Layout.topMargin: Kirigami.Units.gridUnit * 3
@@ -41,7 +41,7 @@ Kirigami.ScrollablePage {
}
Controls.Label {
id: explanationTextPin
- visible: showPin
+ visible: prefs.showPin
Layout.fillWidth: true
Layout.margins: Kirigami.Units.gridUnit
Layout.topMargin: Kirigami.Units.gridUnit * 3