Ver Fonte

Fixes #4198. Application.Invoke isn't wakeup the driver if idle (#4199)

BDisp há 1 mês atrás
pai
commit
2ec08d5939
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      Terminal.Gui/App/ApplicationImpl.cs

+ 4 - 0
Terminal.Gui/App/ApplicationImpl.cs

@@ -293,6 +293,10 @@ public class ApplicationImpl : IApplication
                                return false;
                            }
                           );
+
+        // Ensure the action is executed in the main loop
+        // Wakeup mainloop if it's waiting for events
+        Application.MainLoop.Wakeup ();
     }
 
     /// <inheritdoc />