From 3efad83f5288216135d36983dff4bbcfbfdcfdd6 Mon Sep 17 00:00:00 2001 From: BDisp Date: Thu, 24 Jul 2025 00:14:12 +0100 Subject: [PATCH] Reformat to run CI again --- Terminal.Gui/Drivers/V2/ApplicationV2.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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; + } + ); } ///