Clipboard: fix delete entry - use NScrollView for proper scrollbar colors.

This commit is contained in:
Lemmy
2026-01-06 13:06:01 -05:00
parent 27224e5790
commit b81174b9f8
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ Item {
color: Color.mOnSurfaceVariant
}
ScrollView {
NScrollView {
Layout.fillWidth: true
Layout.fillHeight: true
clip: true
+2 -1
View File
@@ -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;
}