Skip to content

Restore synchronization context after rendering controls#856

Merged
SimonCropp merged 3 commits into
mainfrom
Restore-SynchronizationContext-after-rendering-controls
Jul 6, 2026
Merged

Restore synchronization context after rendering controls#856
SimonCropp merged 3 commits into
mainfrom
Restore-SynchronizationContext-after-rendering-controls

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

No description provided.

Showing a WPF window installs a DispatcherSynchronizationContext on the current
thread. Restore the previous context after ScreenCapture so it does not leak into
Verify's async IO and deadlock a new or mismatched snapshot.

Requires Verify with the SettingsTask.ToTask context fix.
@SimonCropp SimonCropp added this to the 5.0.1 milestone Jul 6, 2026
@SimonCropp SimonCropp merged commit 65ec647 into main Jul 6, 2026
1 of 3 checks passed
@SimonCropp SimonCropp deleted the Restore-SynchronizationContext-after-rendering-controls branch July 6, 2026 23:52
@github-actions github-actions Bot restored the Restore-SynchronizationContext-after-rendering-controls branch July 6, 2026 23:52
@SimonCropp SimonCropp deleted the Restore-SynchronizationContext-after-rendering-controls branch July 7, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant