From b81174b9f8329f697a5fbb72c672b0f886d733b5 Mon Sep 17 00:00:00 2001 From: Lemmy Date: Tue, 6 Jan 2026 13:06:01 -0500 Subject: [PATCH] Clipboard: fix delete entry - use NScrollView for proper scrollbar colors. --- Modules/Panels/Launcher/ClipboardPreview.qml | 2 +- Services/Keyboard/ClipboardService.qml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/Panels/Launcher/ClipboardPreview.qml b/Modules/Panels/Launcher/ClipboardPreview.qml index 1c7aa376a..3aa7d3f93 100644 --- a/Modules/Panels/Launcher/ClipboardPreview.qml +++ b/Modules/Panels/Launcher/ClipboardPreview.qml @@ -137,7 +137,7 @@ Item { color: Color.mOnSurfaceVariant } - ScrollView { + NScrollView { Layout.fillWidth: true Layout.fillHeight: true clip: true diff --git a/Services/Keyboard/ClipboardService.qml b/Services/Keyboard/ClipboardService.qml index 43d26d994..85ce47112 100644 --- a/Services/Keyboard/ClipboardService.qml +++ b/Services/Keyboard/ClipboardService.qml @@ -435,7 +435,8 @@ Singleton { const idStr = String(id).trim(); // Remove from cache delete root.contentCache[idStr]; - deleteProc.command = ["sh", "-lc", `cliphist delete ${idStr}`]; + // cliphist delete reads entries from stdin in the same format as cliphist list + deleteProc.command = ["sh", "-lc", `cliphist list | grep "^${idStr}\\s" | cliphist delete`]; deleteProc.running = true; }