mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
cf5fb25bae
commit
8105a0b971
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue