@@ -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()
136− onCurrentIndexChanged: {
137+ Keys.forwardTo: [sessionChooserLoader.item]
139+ Component.onCompleted: setCurrentSession()
141+ function setCurrentSession() {
137 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
142 currentSession = LightDMService.users.data(currentIndex, LightDMService.userRoles.SessionRole);
140− Keys.forwardTo: [sessionChooserLoader.item]