Преглед на файлове

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 = "";