Skip to content

Commit

Permalink
TEST: Add Application.DoEvents() in RefreshRevisions
Browse files Browse the repository at this point in the history
  • Loading branch information
mstv committed Apr 19, 2022
1 parent 3cd35a3 commit 903f924
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GitUI/CommandsDialogs/FormBrowse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ private void RefreshRevisions(Func<RefsFilter, IReadOnlyList<IGitRef>> getRefs)
return;
}

// Process events e.g. from closing FormProcess, particularly after rebase / conflict resolution actions
Application.DoEvents();

Debug.Assert(RevisionGrid.CanRefresh, "Already loading revisions when running RefreshRevisions(). This could cause the commits in the grid to be loaded several times.");
RevisionGrid.PerformRefreshRevisions(getRefs, forceRefresh: true);

Expand Down

0 comments on commit 903f924

Please sign in to comment.