on xenial help sign in
Fix first session icon on startup
cec6f99Michael Terry
qml/Greeter/WideView.qml+6−3
@@ -132,12 +132,15 @@ FocusScope {
132 onResponded: root.responded(response)
132 onResponded: root.responded(response)
133 onSelected: root.selected(index)
133 onSelected: root.selected(index)
134 onSessionChooserButtonClicked: parent.state = "SessionsList"
134 onSessionChooserButtonClicked: parent.state = "SessionsList"
135+ onCurrentIndexChanged: setCurrentSession()
135
136
136− onCurrentIndexChanged: {
137+ Keys.forwardTo: [sessionChooserLoader.item]
138+
139+ Component.onCompleted: setCurrentSession()
140+
141+ function setCurrentSession() {
137 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
142 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
138 }
143 }
139−
140− Keys.forwardTo: [sessionChooserLoader.item]
141 }
144 }
142
145
143 Loader {
146 Loader {