From f6ba9e3a221dd09bcece2647d97f048b0f25000f Mon Sep 17 00:00:00 2001 From: BDisp Date: Wed, 11 May 2022 00:15:12 +0100 Subject: [PATCH] Avoid UpdateScreen running twice because Driver.Refresh already do. --- Terminal.Gui/Core/Application.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Terminal.Gui/Core/Application.cs b/Terminal.Gui/Core/Application.cs index d220bd6a3..8b06bf229 100644 --- a/Terminal.Gui/Core/Application.cs +++ b/Terminal.Gui/Core/Application.cs @@ -315,12 +315,12 @@ namespace Terminal.Gui { } // Used only for start debugging on Unix. - //#if DEBUG - // while (!System.Diagnostics.Debugger.IsAttached) { - // System.Threading.Thread.Sleep (100); - // } - // System.Diagnostics.Debugger.Break (); - //#endif +//#if DEBUG +// while (!System.Diagnostics.Debugger.IsAttached) { +// System.Threading.Thread.Sleep (100); +// } +// System.Diagnostics.Debugger.Break (); +//#endif // Reset all class variables (Application is a singleton). ResetState (); @@ -914,7 +914,7 @@ namespace Terminal.Gui { /// public static void Refresh () { - Driver.UpdateScreen (); + Driver.UpdateOffScreen (); View last = null; foreach (var v in toplevels.Reverse ()) { if (v.Visible) {