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>
This commit is contained in:
jan Iversen 2019-12-18 11:29:37 +01:00 committed by Dirk Hohndel
parent ab28008679
commit a4d299e01e
3 changed files with 12 additions and 14 deletions

View file

@ -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