Timer fires before detectClipboard completes (startup race on first statusCheck) #26
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The 5-second status timer is declared with
running: truewhiledetectClipboardis started inComponent.onCompleted. Both can execute near-simultaneously on startup, so the firststatusCheckmay run beforeroot.clipboardCmdhas been populated by the detection process.Impact
The widget performs one unnecessary or slightly early status poll on every load. The race is benign but wastes a process invocation and can produce a transient state where clipboard operations are not yet configured.
Timer now waits for detectClipboard via Component.onCompleted ordering. Merged to vibes.
Resolved via merge
daab237. The plugin is confirmed working by @jtmorris. Human code review required before merging to testing.