mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-06 06:43:49 +00:00
PowerControl: Improve nulls in MenuItems
This commit is contained in:
parent
06f2d9a702
commit
ebe1cdba87
3 changed files with 11 additions and 20 deletions
|
|
@ -4,7 +4,7 @@ namespace PowerControl.Menu
|
|||
{
|
||||
public class MenuRoot : MenuItem
|
||||
{
|
||||
public IList<MenuItem> Items { get; set; } = new List<MenuItem>();
|
||||
public IList<MenuItem> Items { get; } = new List<MenuItem>();
|
||||
public MenuItem? Selected;
|
||||
public event Action VisibleChanged;
|
||||
|
||||
|
|
@ -123,4 +123,4 @@ namespace PowerControl.Menu
|
|||
return Selected;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue