From a977fdadff3a6d021821cf1364c3ab86fa95ef37 Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Sun, 10 Jan 2021 16:51:41 +0100 Subject: [PATCH] Fix tree node collection type --- src/Spectre.Console/Widgets/Tree.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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. ///