diff --git a/Terminal.Gui/Drivers/V2/ApplicationV2.cs b/Terminal.Gui/Drivers/V2/ApplicationV2.cs index 64af2b222..29861fd70 100644 --- a/Terminal.Gui/Drivers/V2/ApplicationV2.cs +++ b/Terminal.Gui/Drivers/V2/ApplicationV2.cs @@ -232,20 +232,22 @@ public class ApplicationV2 : ApplicationImpl if (Application.MainThreadId == Thread.CurrentThread.ManagedThreadId) { action (); + // Ensure the action is executed and forces LayoutAndDrawImpl Application.LayoutAndDrawImpl (true); return; } - _timedEvents.Add (TimeSpan.Zero, - () => - { - action (); + _timedEvents.Add ( + TimeSpan.Zero, + () => + { + action (); - return false; - } - ); + return false; + } + ); } ///