mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Clipboard: fix delete entry - use NScrollView for proper scrollbar colors.
This commit is contained in:
@@ -137,7 +137,7 @@ Item {
|
||||
color: Color.mOnSurfaceVariant
|
||||
}
|
||||
|
||||
ScrollView {
|
||||
NScrollView {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
clip: true
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user