From fbf37f0f7a79cedae10c7ed181024cdd35239468 Mon Sep 17 00:00:00 2001 From: JC-Chung <52159296+JC-Chung@users.noreply.github.com> Date: Tue, 22 Sep 2026 12:26:17 +0800 Subject: [PATCH] fix: `HasPendingPullOrPush` dirty state not updated after checkout --- src/ViewModels/Repository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index 732f06481..9957e860b 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -815,6 +815,7 @@ public void RefreshAfterCheckoutBranch(Models.Branch checkouted) var builder = BuildBranchTree(locals, [], false); LocalBranchTrees = builder.Locals; CurrentBranch = checkouted; + GetOwnerPage()?.ChangeDirtyState(Models.DirtyState.HasPendingPullOrPush, !checkouted.IsTrackStatusVisible); RefreshCommits(); RefreshWorkingCopyChanges();