Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d23440ff authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Move the filter feature into a delegate action instead of the main action

It's not very common anymore and it felt confusing.

BUG: 401844
parent 83fd7740
......@@ -152,11 +152,8 @@ DiscoverPage {
}
delegate: Kirigami.SwipeListItem {
Layout.fillWidth: true
enabled: display.length>0 && model.enabled
highlighted: ListView.isCurrentItem
supportsMouseEvents: sourcesBackend.canFilterSources
onClicked: Navigation.openApplicationListSource(sourceId)
Keys.onReturnPressed: clicked()
actions: [
......@@ -190,6 +187,14 @@ DiscoverPage {
window.showPassiveNotification(i18n("Failed to remove the source '%1'", display))
}
}
},
Kirigami.Action {
iconName: "view-filter"
tooltip: i18n("Show contents")
visible: sourcesBackend.canFilterSources
onTriggered: {
Navigation.openApplicationListSource(sourceId)
}
}
]
......
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