on xenial help sign in
If we trash the lockscreen, reset some variables
commit59c17642226c5627e285c8b95440198b74ad3f9f authorMichael Terry <michael.terry@canonical.com> dateFri 1 Aug 2014, 10:25 (12 years ago) parentd73fdc5
1 file changed+4−1
qml/Components/Lockscreen.qml+4−1
qml/Components/Lockscreen.qml+4−1
@@ -70,7 +70,6 @@ Showable {
7070 // This causes the loader below to destry and recreate the source
7171 pinPadLoader.resetting = true;
7272 pinPadLoader.resetting = false;
73− pinPadLoader.waiting = false
7473 }
7574
7675 function clear(showAnimation) {
@@ -160,6 +159,10 @@ Showable {
160159 property bool showWrongText: false
161160
162161 source: (!resetting && root.required) ? (root.alphaNumeric ? "PassphraseLockscreen.qml" : "PinLockscreen.qml") : ""
162+ onSourceChanged: {
163+ waiting = false
164+ showWrongText = false
165+ }
163166
164167 Connections {
165168 target: pinPadLoader.item