on xenial help sign in
If you show the greeter, have it remember which side it hid into
154fc8fMichael Terry
qml/Greeter/Greeter.qml+2−4
@@ -58,10 +58,8 @@ Showable {
58
58
59 onRequiredChanged: {
59 onRequiredChanged: {
60 // Reset hide animation to default once we're finished with it
60 // Reset hide animation to default once we're finished with it
61− if (!required) {
61+ if (required) {
62− // Put back on left for reliable show direction and so that
62+ // Reset hide animation so that a hide() call is reliably left
63− // if normal hide() is called, we don't animate from right.
64− x = -width
65 hideAnimation = __leftHideAnimation
63 hideAnimation = __leftHideAnimation
66 }
64 }
67 }
65 }