Fix tree node collection type

This commit is contained in:
Patrik Svensson 2021-01-10 16:51:41 +01:00 committed by Patrik Svensson
parent 8261b25e5c
commit a977fdadff

View File

@ -25,16 +25,13 @@ namespace Spectre.Console
/// <summary>
/// Gets the tree's child nodes.
/// </summary>
public List<Tree> Nodes { get; } = new List<Tree>();
public List<TreeNode> Nodes => _root.Nodes;
/// <summary>
/// Gets or sets a value indicating whether or not the tree is expanded or not.
/// </summary>
public bool Expanded { get; set; } = true;
/// <inheritdoc/>
List<TreeNode> IHasTreeNodes.Nodes => _root.Nodes;
/// <summary>
/// Initializes a new instance of the <see cref="Tree"/> class.
/// </summary>