瀏覽代碼

fixed root node indentation

tznind 4 年之前
父節點
當前提交
d68dbca108
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Terminal.Gui/Views/TreeView.cs

+ 1 - 1
Terminal.Gui/Views/TreeView.cs

@@ -631,7 +631,7 @@ namespace Terminal.Gui {
 		private string GetLinePrefix (ConsoleDriver driver)
 		{
 			// If not showing line branches or this is a root object
-			if(!tree.ShowBranchLines || Parent == null)
+			if(!tree.ShowBranchLines)
 				return new string(' ',Depth);
 
 			string prefix = "";