optimize<*>: App.RaiseException should be called in UIThread; add default progress description for popups;

This commit is contained in:
leo 2024-02-26 11:29:57 +08:00
parent dc0b33ba21
commit 9c3294c285
35 changed files with 100 additions and 34 deletions

View file

@ -42,6 +42,8 @@ namespace SourceGit.ViewModels {
if (jobs.Count == 0) return null;
_repo.SetWatcherEnabled(false);
ProgressDescription = $"Stash changes ...";
return Task.Run(() => {
new Commands.Stash(_repo.FullPath).Push(jobs, Message);
CallUIThread(() => _repo.SetWatcherEnabled(true));