mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 17:15:28 +08:00 
			
		
		
		
	Fix tree node collection type
This commit is contained in:
		 Patrik Svensson
					Patrik Svensson
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							8261b25e5c
						
					
				
				
					commit
					a977fdadff
				
			| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user