We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406ace9 commit f04b0c5Copy full SHA for f04b0c5
src/ViewModels/Repository.cs
@@ -1120,7 +1120,8 @@ public void RefreshBranches()
1120
if (_workingCopy != null)
1121
_workingCopy.HasRemotes = remotes.Count > 0;
1122
1123
- GetOwnerPage()?.ChangeDirtyState(Models.DirtyState.HasPendingPullOrPush, !CurrentBranch.TrackStatus.IsVisible);
+ var hasPendingPullOrPush = CurrentBranch?.TrackStatus.IsVisible ?? false;
1124
+ GetOwnerPage()?.ChangeDirtyState(Models.DirtyState.HasPendingPullOrPush, !hasPendingPullOrPush);
1125
});
1126
}
1127
0 commit comments