kcms/scripts: Set text of Delete action correctly

Fixes missing text on the menu item in ActionToolBar's menu.
This commit is contained in:
ivan tkachenko 2023-06-27 18:43:29 +03:00
parent c7ccf91d92
commit 899bef4126
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -62,7 +62,9 @@ KCMUtils.ScrollViewKCM {
Kirigami.Action {
enabled: kcm.canDeleteEntry(model.metaData)
icon.name: kcm.pendingDeletions.indexOf(model.metaData) === -1 ? "delete" : "edit-undo"
tooltip: i18nc("@info:tooltip", "Delete…")
text: i18nc("@info:tooltip", "Delete…")
displayHint: Kirigami.DisplayHint.IconOnly
onTriggered: kcm.togglePendingDeletion(model.metaData)
}
]