diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-18 11:29:37 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-24 08:25:51 +0900 |
commit | a4d299e01e216ef2db61d98d304d091da39ee51d (patch) | |
tree | 7d680274c18599ee96c4d8353e30636e6ab01cb1 /mobile-widgets/qml/CloudCredentials.qml | |
parent | ab28008679a6100c14ef0a8fb6ebdb7260a7dd35 (diff) | |
download | subsurface-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/CloudCredentials.qml')
-rw-r--r-- | mobile-widgets/qml/CloudCredentials.qml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml index 69c1d85c7..198e2605c 100644 --- a/mobile-widgets/qml/CloudCredentials.qml +++ b/mobile-widgets/qml/CloudCredentials.qml @@ -53,7 +53,7 @@ Item { Controls.Label { text: qsTr("Email") - visible: !rootItem.showPin + visible: !prefs.showPin font.pointSize: subsurfaceTheme.smallPointSize color: subsurfaceTheme.secondaryTextColor } @@ -61,7 +61,7 @@ Item { Controls.TextField { id: login text: prefs.cloudUserName - visible: !rootItem.showPin + visible: !prefs.showPin Layout.fillWidth: true inputMethodHints: Qt.ImhEmailCharactersOnly | Qt.ImhNoAutoUppercase @@ -69,7 +69,7 @@ Item { Controls.Label { text: qsTr("Password") - visible: !rootItem.showPin + visible: !prefs.showPin font.pointSize: subsurfaceTheme.smallPointSize color: subsurfaceTheme.secondaryTextColor } @@ -87,20 +87,20 @@ Item { Controls.Label { text: qsTr("PIN") - visible: rootItem.showPin + visible: prefs.showPin } Controls.TextField { id: pin text: "" Layout.fillWidth: true - visible: rootItem.showPin + visible: prefs.showPin } RowLayout { Layout.fillWidth: true Layout.margins: Kirigami.Units.smallSpacing spacing: Kirigami.Units.smallSpacing - visible: rootItem.showPin + visible: prefs.showPin SsrfButton { id: registerpin text: qsTr("Register") @@ -126,7 +126,7 @@ Item { Layout.fillWidth: true Layout.margins: Kirigami.Units.smallSpacing spacing: Kirigami.Units.smallSpacing - visible: !rootItem.showPin + visible: !prefs.showPin SsrfButton { id: signin_register_normal |