瀏覽代碼

Placing in the right place in the Core folder.

BDisp 5 年之前
父節點
當前提交
fc7e8255a2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Terminal.Gui/Core/Toplevel.cs

+ 1 - 1
Terminal.Gui/Core/Toplevel.cs

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