on xenial help sign in
only clear the lockscreen when it is requested, not directly after entering

Otherwise when fading out the lockscreen one can see that it is reset

commitf56dd66ca851cd8fc23b259b8aa19830a91e0dad authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 24 Jun 2013, 15:56 (13 years ago) parent41efc9c
2 files changed+7−2
Greeter/Lockscreen.qml+6−1 Shell.qml+1−1
Greeter/Lockscreen.qml+6−1
@@ -41,6 +41,12 @@ Showable {
4141 signal cancel()
4242 signal emergencyCall()
4343
44+ onRequiredChanged: {
45+ if (required) {
46+ pinPadLoader.item.clear(false);
47+ }
48+ }
49+
4450 function reset() {
4551 pinPadLoader.resetting = true;
4652 pinPadLoader.resetting = false;
@@ -140,7 +146,6 @@ Showable {
140146 }
141147 if (LightDM.Greeter.authenticated) {
142148 root.unlocked();
143− pinPadLoader.item.clear(false);
144149 } else {
145150 pinPadLoader.item.clear(true);
146151 }
Shell.qml+1−1
@@ -380,7 +380,7 @@ FocusScope {
380380 } else {
381381 lockscreen.alphaNumeric = true
382382 }
383− lockscreen.placeholderText = i18n.tr("Please enter %1:").arg(text);
383+ lockscreen.placeholderText = i18n.tr("Please enter %1").arg(text);
384384 lockscreen.show();
385385 }
386386 }