on xenial help sign in
Fix delay on lockscreen before you can log in
8f39a56Michael Terry
qml/Greeter/Greeter.qml+9−3
@@ -61,8 +61,11 @@ Showable {
61
61
62 function forceShow() {
62 function forceShow() {
63 forcedUnlock = false;
63 forcedUnlock = false;
64− showNow();
64+ if (!required) {
65+ showNow(); // loader.onLoaded will select a user
66+ } else {
65− d.selectUser(d.currentIndex, true);
67+ d.selectUser(d.currentIndex, true);
68+ }
66 }
69 }
67
70
68 function notifyAppFocusRequested(appId) {
71 function notifyAppFocusRequested(appId) {
@@ -398,7 +401,10 @@ Showable {
398 onShowPrompt: {
401 onShowPrompt: {
399 d.waiting = false;
402 d.waiting = false;
400
403
404+ // Check root.required as well -- even though it's directly used to
405+ // determine greeter.active -- because this callback can be made
406+ // after required=true, but before greeter.active gets updated.
401− if (!lightDM.greeter.active) {
407+ if (!LightDMService.greeter.active && !root.required) {
402 return; // could happen if hideGreeter() comes in before we prompt
408 return; // could happen if hideGreeter() comes in before we prompt
403 }
409 }
404
410