Explorar el Código

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

BDisp hace 1 mes
padre
commit
2ec08d5939
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 />