From c50508d4ac117a62c3596219ed88cfd857ed5096 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 22 Nov 2024 10:42:39 +0800 Subject: [PATCH] fix: try to fix the issue that the branch tree did not update after deleting multiple branches (#729) Signed-off-by: leo --- src/ViewModels/DeleteMultipleBranches.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/DeleteMultipleBranches.cs b/src/ViewModels/DeleteMultipleBranches.cs index 6048ec68..87bb3122 100644 --- a/src/ViewModels/DeleteMultipleBranches.cs +++ b/src/ViewModels/DeleteMultipleBranches.cs @@ -42,7 +42,12 @@ namespace SourceGit.ViewModels } } - CallUIThread(() => _repo.SetWatcherEnabled(true)); + CallUIThread(() => + { + _repo.MarkBranchesDirtyManually(); + _repo.SetWatcherEnabled(true); + }); + return true; }); }