Parcourir la source

fixed root node indentation

tznind il y a 4 ans
Parent
commit
d68dbca108
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 = "";