on xenial help sign in
If we trash the lockscreen, reset some variables
59c1764Michael Terry
qml/Components/Lockscreen.qml+4−1
@@ -70,7 +70,6 @@ Showable {
70 // This causes the loader below to destry and recreate the source
70 // This causes the loader below to destry and recreate the source
71 pinPadLoader.resetting = true;
71 pinPadLoader.resetting = true;
72 pinPadLoader.resetting = false;
72 pinPadLoader.resetting = false;
73− pinPadLoader.waiting = false
74 }
73 }
75
74
76 function clear(showAnimation) {
75 function clear(showAnimation) {
@@ -160,6 +159,10 @@ Showable {
160 property bool showWrongText: false
159 property bool showWrongText: false
161
160
162 source: (!resetting && root.required) ? (root.alphaNumeric ? "PassphraseLockscreen.qml" : "PinLockscreen.qml") : ""
161 source: (!resetting && root.required) ? (root.alphaNumeric ? "PassphraseLockscreen.qml" : "PinLockscreen.qml") : ""
162+ onSourceChanged: {
163+ waiting = false
164+ showWrongText = false
165+ }
163
166
164 Connections {
167 Connections {
165 target: pinPadLoader.item
168 target: pinPadLoader.item