mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-20 05:48:14 +08:00

committed by
Phil Scott

parent
fa553fd72e
commit
865552c3f2
@ -9,7 +9,7 @@ namespace Spectre.Console
|
||||
public ListPromptItem<T>? Parent { get; }
|
||||
public List<ListPromptItem<T>> Children { get; }
|
||||
public int Depth { get; }
|
||||
public bool Selected { get; set; }
|
||||
public bool IsSelected { get; set; }
|
||||
|
||||
public bool IsGroup => Children.Count > 0;
|
||||
|
||||
@ -23,7 +23,7 @@ namespace Spectre.Console
|
||||
|
||||
public IMultiSelectionItem<T> Select()
|
||||
{
|
||||
Selected = true;
|
||||
IsSelected = true;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user