cliphist service: delay a bit before grabbing entries from cliphist

This commit is contained in:
end-4
2025-05-29 11:41:58 +02:00
parent a8533235c1
commit 89203e8794
+10 -1
View File
@@ -46,7 +46,16 @@ Singleton {
Connections {
target: Quickshell
function onClipboardTextChanged() {
root.refresh() // TODO: Account for race condition with cliphist
delayedUpdateTimer.restart()
}
}
Timer {
id: delayedUpdateTimer
interval: ConfigOptions.hacks.arbitraryRaceConditionDelay
repeat: false
onTriggered: {
root.refresh()
}
}