Add launch action to dock favourite context menu

Right-click on a pinned favourite in the dock now shows:
- Launch: opens the app (using its own icon)
- Remove from Dock: existing unpin action, renamed for clarity
This commit is contained in:
Marco Allegretti 2026-04-09 12:29:38 +02:00
parent cf5fb25bae
commit 8105a0b971

View file

@ -341,9 +341,14 @@ MouseArea {
} }
actions: [ actions: [
Kirigami.Action {
icon.name: delegate.delegateModel.application.icon
text: i18n("Launch")
onTriggered: appDelegate.launchApp()
},
Kirigami.Action { Kirigami.Action {
icon.name: "emblem-favorite" icon.name: "emblem-favorite"
text: i18n("Remove") text: i18n("Remove from Dock")
enabled: !folio.FolioSettings.lockLayout enabled: !folio.FolioSettings.lockLayout
onTriggered: folio.FavouritesModel.removeEntry(delegate.index) onTriggered: folio.FavouritesModel.removeEntry(delegate.index)
} }