private void RepositoryManagerOnGitAheadBehindStatusUpdated(GitAheadBehindStatus aheadBehindStatus) { taskManager.RunInUI(() => { cacheContainer.GitTrackingStatusCache.Ahead = aheadBehindStatus.Ahead; cacheContainer.GitTrackingStatusCache.Behind = aheadBehindStatus.Behind; }); }
private void RepositoryManagerOnGitAheadBehindStatusUpdated(GitAheadBehindStatus aheadBehindStatus) { new ActionTask(CancellationToken.None, () => { CurrentAhead = aheadBehindStatus.Ahead; CurrentBehind = aheadBehindStatus.Behind; }) { Affinity = TaskAffinity.UI }.Start(); }
public bool Equals(GitAheadBehindStatus other) { return(ahead == other.ahead && behind == other.behind); }