diff --git a/src/ViewModels/CreateBranch.cs b/src/ViewModels/CreateBranch.cs index bc42ee9e..1b472d58 100644 --- a/src/ViewModels/CreateBranch.cs +++ b/src/ViewModels/CreateBranch.cs @@ -129,7 +129,11 @@ namespace SourceGit.ViewModels Commands.Branch.Create(_repo.FullPath, _name, _baseOnRevision); } - CallUIThread(() => _repo.SetWatcherEnabled(true)); + CallUIThread(() => + { + _repo.MarkBranchesDirtyManually(); + _repo.SetWatcherEnabled(true); + }); return true; }); } diff --git a/src/ViewModels/DeleteBranch.cs b/src/ViewModels/DeleteBranch.cs index aafede8d..ba1aa839 100644 --- a/src/ViewModels/DeleteBranch.cs +++ b/src/ViewModels/DeleteBranch.cs @@ -65,7 +65,11 @@ namespace SourceGit.ViewModels Commands.Branch.DeleteRemote(_repo.FullPath, Target.Remote, Target.Name); } - CallUIThread(() => _repo.SetWatcherEnabled(true)); + CallUIThread(() => + { + _repo.MarkBranchesDirtyManually(); + _repo.SetWatcherEnabled(true); + }); return true; }); }