فهرست منبع

Fixes #3066. The last RunIteration only work on WindowsDriver (#3067)

Co-authored-by: Tig <[email protected]>
BDisp 1 سال پیش
والد
کامیت
3f35352561
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Terminal.Gui/Application.cs

+ 1 - 1
Terminal.Gui/Application.cs

@@ -638,7 +638,7 @@ public static partial class Application {
 	/// it will be set to <see langword="false"/> if at least one iteration happened.</param>
 	/// 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)
 	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
 			// Notify Toplevel it's ready
 			if (firstIteration) {
 			if (firstIteration) {
 				state.Toplevel.OnReady ();
 				state.Toplevel.OnReady ();