From 3f3535256126f081e981d429274baac39350de3b Mon Sep 17 00:00:00 2001 From: BDisp Date: Tue, 26 Dec 2023 16:25:33 +0000 Subject: [PATCH] Fixes #3066. The last RunIteration only work on WindowsDriver (#3067) Co-authored-by: Tig --- Terminal.Gui/Application.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terminal.Gui/Application.cs b/Terminal.Gui/Application.cs index c57b6619cc..785331adad 100644 --- a/Terminal.Gui/Application.cs +++ b/Terminal.Gui/Application.cs @@ -638,7 +638,7 @@ public static void RunLoop (RunState state) /// it will be set to if at least one iteration happened. 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 ();