forked from Shinonome/dots-hyprland
cliphist service: delay a bit before grabbing entries from cliphist
This commit is contained in:
@@ -46,7 +46,16 @@ Singleton {
|
|||||||
Connections {
|
Connections {
|
||||||
target: Quickshell
|
target: Quickshell
|
||||||
function onClipboardTextChanged() {
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user