on xenial help sign in
Fix first session icon on startup
commitcec6f99abc371fcf4886a1ece932f1290b9c666a authorMichael Terry <mike@mterry.name> dateMon 23 Jan 2017, 09:28 (10 years ago) parent979cee6
1 file changed+6−3
qml/Greeter/WideView.qml+6−3
qml/Greeter/WideView.qml+6−3
@@ -132,12 +132,15 @@ FocusScope {
132132 onResponded: root.responded(response)
133133 onSelected: root.selected(index)
134134 onSessionChooserButtonClicked: parent.state = "SessionsList"
135+ onCurrentIndexChanged: setCurrentSession()
135136
136− onCurrentIndexChanged: {
137+ Keys.forwardTo: [sessionChooserLoader.item]
138+
139+ Component.onCompleted: setCurrentSession()
140+
141+ function setCurrentSession() {
137142 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
138143 }
139−
140− Keys.forwardTo: [sessionChooserLoader.item]
141144 }
142145
143146 Loader {