Parcourir la source

Prevents MenuBar redraw twice if there more than one Application.Top with MenuBar too.

BDisp il y a 5 ans
Parent
commit
054ea9a573
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Terminal.Gui/Core.cs

+ 1 - 1
Terminal.Gui/Core.cs

@@ -1666,7 +1666,7 @@ namespace Terminal.Gui {
 		{
 			Application.CurrentView = this;
 
-			if (this == Application.Top) {
+			if (this == Application.Top || this == Application.Current) {
 				if (!NeedDisplay.IsEmpty) {
 					Driver.SetAttribute (Colors.TopLevel.Normal);
 					Clear (region);