Browse Source

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

BDisp 5 years ago
parent
commit
054ea9a573
1 changed files with 1 additions and 1 deletions
  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);