From 899bef41263217442020ca10f7ba9857f1690a50 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Tue, 27 Jun 2023 18:43:29 +0300 Subject: [PATCH] kcms/scripts: Set text of Delete action correctly Fixes missing text on the menu item in ActionToolBar's menu. --- src/kcms/scripts/ui/main.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kcms/scripts/ui/main.qml b/src/kcms/scripts/ui/main.qml index 6b320246e9..1089e4eeab 100644 --- a/src/kcms/scripts/ui/main.qml +++ b/src/kcms/scripts/ui/main.qml @@ -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) } ]