Commit bc5c1d88 authored by David Redondo's avatar David Redondo 🏎

Select application after it is added

Summary:
After adding an application, an user will probably want to edit shortcuts for
the new application. Having to select it again is cumbersome.
BUG: 421331

Test Plan: Add an application.

Reviewers: broulik, ngraham, #plasma, mart

Reviewed By: #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29644
parent 12a14a78
......@@ -92,6 +92,14 @@ KCM.SimpleKCM {
id: components
clip: true
model: kcm.filteredModel
add: Transition {
id: transition
PropertyAction {
target: components
property: "currentIndex"
value: transition.ViewTransition.index
}
}
delegate: Kirigami.AbstractListItem {
id: componentDelegate
readonly property color foregroundColor: ListView.isCurrentItem ? activeTextColor : textColor
......
Markdown is supported
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