Skip to content

Commit fbf37f0

Browse files
committed
fix: HasPendingPullOrPush dirty state not updated after checkout
1 parent 98e5767 commit fbf37f0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/ViewModels/Repository.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ public void RefreshAfterCheckoutBranch(Models.Branch checkouted)
815815
var builder = BuildBranchTree(locals, [], false);
816816
LocalBranchTrees = builder.Locals;
817817
CurrentBranch = checkouted;
818+
GetOwnerPage()?.ChangeDirtyState(Models.DirtyState.HasPendingPullOrPush, !checkouted.IsTrackStatusVisible);
818819

819820
RefreshCommits();
820821
RefreshWorkingCopyChanges();

0 commit comments

Comments
 (0)