diff --git a/src/Spectre.Console/Widgets/Tree.cs b/src/Spectre.Console/Widgets/Tree.cs index b613831..8ccacd3 100644 --- a/src/Spectre.Console/Widgets/Tree.cs +++ b/src/Spectre.Console/Widgets/Tree.cs @@ -25,16 +25,13 @@ namespace Spectre.Console /// /// Gets the tree's child nodes. /// - public List Nodes { get; } = new List(); + public List Nodes => _root.Nodes; /// /// Gets or sets a value indicating whether or not the tree is expanded or not. /// public bool Expanded { get; set; } = true; - /// - List IHasTreeNodes.Nodes => _root.Nodes; - /// /// Initializes a new instance of the class. ///