Commit 149e0bd6 authored by Janet Blackquill's avatar Janet Blackquill 🌈
Browse files

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.
parent e2fb0a98
......@@ -75,14 +75,12 @@ KCM.ScrollViewKCM {
highlighted: index == userList.currentIndex
function openPage() {
onClicked: {
userList.currentIndex = index
kcm.push("UserDetailsPage.qml", {user: userObject})
onClicked: openPage()
Kirigami.Theme.colorSet: highlighted ? Kirigami.Theme.Selection : Kirigami.Theme.View
leading: Rectangle {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment