From 0011776ff0e2a0df59fa9d57b8bc0b2491eb9d97 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Thu, 20 May 2021 11:41:23 -0600 Subject: [PATCH] [applets/clipboard] Refine placeholder message when searching Now it will say "No matches" when there are no search results, and "Clipboard is empty" when the clipboard actually is empty. BUG: 437386 FIXED-IN: 5.23 --- applets/clipboard/contents/ui/Menu.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/clipboard/contents/ui/Menu.qml b/applets/clipboard/contents/ui/Menu.qml index e25445299..c706d0e67 100644 --- a/applets/clipboard/contents/ui/Menu.qml +++ b/applets/clipboard/contents/ui/Menu.qml @@ -63,7 +63,7 @@ PlasmaExtras.ScrollArea { width: parent.width - (PlasmaCore.Units.largeSpacing * 4) visible: menuListView.count === 0 - text: i18n("Clipboard is empty") + text: model.filterRegExp.length > 0 ? i18n("No matches") : i18n("Clipboard is empty") } } }