on xenial help sign in
Greeter: Fix 'tap to unlock' not appearing on startup
7631891Michael Terry
Greeter/GreeterContent.qml+3−1
@@ -80,7 +80,9 @@ MouseArea {
80 source: greeter.narrowMode ? "" : "LoginList.qml"
80 source: greeter.narrowMode ? "" : "LoginList.qml"
81
81
82 onLoaded: {
82 onLoaded: {
83− item.currentIndex = greeterContentLoader.currentIndex
83+ item.currentIndex = greeterContentLoader.currentIndex;
84+ selected(item.currentIndex);
85+ item.resetAuthentication();
84 }
86 }
85
87
86 Binding {
88 Binding {
Greeter/LoginList.qml−8
@@ -66,14 +66,6 @@ Item {
66
66
67 readonly property bool movingInternally: moveTimer.running || userList.moving
67 readonly property bool movingInternally: moveTimer.running || userList.moving
68
68
69− onCountChanged: {
70− // Start authentication when we start up
71− if (!LightDM.Greeter.authenticationUser && userList.currentItem) {
72− root.selected(userList.currentIndex);
73− root.resetAuthentication();
74− }
75− }
76−
77 onCurrentIndexChanged: {
69 onCurrentIndexChanged: {
78 if (LightDM.Greeter.authenticationUser != userList.model.data(currentIndex, LightDM.UserRoles.NameRole)) {
70 if (LightDM.Greeter.authenticationUser != userList.model.data(currentIndex, LightDM.UserRoles.NameRole)) {
79 root.resetAuthentication();
71 root.resetAuthentication();