on xenial help sign in
Update current session after changing the user
b5651a8Albert Astals Cid
qml/Greeter/WideView.qml+1−4
@@ -125,8 +125,6 @@ FocusScope {
125 id: loginList
125 id: loginList
126 objectName: "loginList"
126 objectName: "loginList"
127
127
128− property int selectedUserIndex: 0
129−
130 width: units.gu(40)
128 width: units.gu(40)
131 anchors {
129 anchors {
132 left: parent.left
130 left: parent.left
@@ -141,11 +139,10 @@ FocusScope {
141 Behavior on boxVerticalOffset { UbuntuNumberAnimation {} }
139 Behavior on boxVerticalOffset { UbuntuNumberAnimation {} }
142
140
143 model: root.userModel
141 model: root.userModel
144− currentSession: LightDMService.users.data(selectedUserIndex, LightDMService.userRoles.SessionRole);
145 onResponded: root.responded(response)
142 onResponded: root.responded(response)
146 onSelected: {
143 onSelected: {
147 root.selected(index)
144 root.selected(index)
148− loginList.selectedUserIndex = index;
145+ currentSession = LightDMService.users.data(index, LightDMService.userRoles.SessionRole);
149 }
146 }
150 onSessionChooserButtonClicked: parent.state = "SessionsList"
147 onSessionChooserButtonClicked: parent.state = "SessionsList"
151
148