kcms/users: get rid of useless factorisation

We don't call this function anywhere else besides the signal handler,
so we just move its code to the signal handler.
wilder-5.24
Jan Blackquill 5 years ago committed by Devin Lin
parent f915526b2c
commit e584f47991
  1. 4
      kcms/users/package/contents/ui/main.qml

@ -75,14 +75,12 @@ KCM.ScrollViewKCM {
highlighted: index == userList.currentIndex
function openPage() {
onClicked: {
userList.currentIndex = index
kcm.pop(0)
kcm.push("UserDetailsPage.qml", {user: userObject})
}
onClicked: openPage()
Kirigami.Theme.colorSet: highlighted ? Kirigami.Theme.Selection : Kirigami.Theme.View
leading: Rectangle {

Loading…
Cancel
Save