Skip to content

Commit

Permalink
Fixes #3066. The last RunIteration only work on WindowsDriver (#3067)
Browse files Browse the repository at this point in the history
Co-authored-by: Tig <[email protected]>
  • Loading branch information
BDisp and tig authored Dec 26, 2023
1 parent e885af0 commit 3f35352
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Terminal.Gui/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public static void RunLoop (RunState state)
/// it will be set to <see langword="false"/> if at least one iteration happened.</param>
public static void RunIteration (ref RunState state, ref bool firstIteration)
{
if (MainLoop.EventsPending () && MainLoop.Running) {
if (MainLoop.Running && MainLoop.EventsPending ()) {
// Notify Toplevel it's ready
if (firstIteration) {
state.Toplevel.OnReady ();
Expand Down

0 comments on commit 3f35352

Please sign in to comment.