on xenial help sign in
Fix minor issue when auto-responding with a passcode
commitf83f8e30dedd731899492f449f7f241073774164 authorMichael Terry <michael.terry@canonical.com> dateTue 28 Jun 2016, 09:56 (10 years ago) parentebdbc43
1 file changed+4−1
qml/Greeter/GreeterPrompt.qml+4−1
qml/Greeter/GreeterPrompt.qml+4−1
@@ -129,7 +129,10 @@ FocusScope {
129129 }
130130 ]
131131
132− onTextChanged: {
132+ onDisplayTextChanged: {
133+ // We use onDisplayTextChanged instead of onTextChanged because
134+ // displayText changes after text and if we did this before it
135+ // updated, we would use the wrong displayText for fakeLabel.
133136 if (!isAlphanumeric && text.length >= 4) {
134137 // hard limit of 4 for passcodes right now
135138 respond();