Avoid UpdateScreen running twice because Driver.Refresh already do.

This commit is contained in:
BDisp
2022-05-11 00:15:12 +01:00
parent 460f1714fa
commit f6ba9e3a22

View File

@@ -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 {
/// </summary>
public static void Refresh ()
{
Driver.UpdateScreen ();
Driver.UpdateOffScreen ();
View last = null;
foreach (var v in toplevels.Reverse ()) {
if (v.Visible) {