@@ -144,27 +144,12 @@ FocusScope {
144 currentSession: LightDMService.users.data(selectedUserIndex, LightDMService.userRoles.SessionRole);
144 currentSession: LightDMService.users.data(selectedUserIndex, LightDMService.userRoles.SessionRole);
145 onResponded: root.responded(response)
145 onResponded: root.responded(response)
146 onSelected: {
146 onSelected: {
147− if (LightDMService.users.mock) {
148− LightDMService.users.mock.currentUsername = currentUser;
151− loginList.selectedUserIndex = index;
152 root.selected(index)
147 root.selected(index)
153− currentSession = LightDMService.users.data(index, LightDMService.userRoles.SessionRole);
148+ loginList.selectedUserIndex = index;
155 onSessionChooserButtonClicked: parent.state = "SessionsList"
150 onSessionChooserButtonClicked: parent.state = "SessionsList"
157 Keys.forwardTo: [sessionChooserLoader.item]
152 Keys.forwardTo: [sessionChooserLoader.item]
159− // This is only for testing
162− //enabled: LightDM.Users.mock
163− target: LightDMService.users
165− loginList.currentSession = LightDMService.users.data(loginList.selectedUserIndex, LightDMService.userRoles.SessionRole);