Skip to content

Conversation

NathanBaulch
Copy link
Contributor

As part of my work on #1439 I'd like to remove any UI concerns from the SourceGit.Commands namespace.
I'm no Avalonia expert but it seems simple enough to detect the wrong thread in Launcher when processing notifications and dispatch to the UI thread as needed.
The only outstanding question is whether to use UIThread.Post or UIThread.Invoke as the existing code used a mixture of both.

@NathanBaulch NathanBaulch changed the title refactor: auto dispatch to UI thread in Launcher refactor: auto dispatch notifications to UI thread in Launcher Jul 2, 2025
@love-linger love-linger self-assigned this Jul 2, 2025
@love-linger love-linger added the enhancement New feature or request label Jul 2, 2025
@love-linger love-linger merged commit 25afcba into sourcegit-scm:develop Jul 2, 2025
13 checks passed
@NathanBaulch NathanBaulch deleted the autodispatch branch July 2, 2025 05:10
love-linger added a commit that referenced this pull request Jul 2, 2025
- Remove unnecessary `CallUIThread` in `ViewModels.Clone`
- Code style

Signed-off-by: leo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants