on xenial help sign in
Fix minor issue when auto-responding with a passcode
f83f8e3Michael Terry
qml/Greeter/GreeterPrompt.qml+4−1
@@ -129,7 +129,10 @@ FocusScope {
129 }
129 }
130 ]
130 ]
131
131
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.
133 if (!isAlphanumeric && text.length >= 4) {
136 if (!isAlphanumeric && text.length >= 4) {
134 // hard limit of 4 for passcodes right now
137 // hard limit of 4 for passcodes right now
135 respond();
138 respond();