mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 14:25:40 +00:00
PowerControl: MenuRoot update VisibleChanged and Render() to accept nulls
This commit is contained in:
parent
bbc4cf8200
commit
130a6fb745
5 changed files with 22 additions and 32 deletions
|
|
@ -17,7 +17,7 @@ namespace PowerControl.Menu
|
|||
White
|
||||
}
|
||||
|
||||
public String Name { get; set; }
|
||||
public String Name { get; set; } = "";
|
||||
public bool Visible { get; set; } = true;
|
||||
public bool Selectable { get; set; }
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ namespace PowerControl.Menu
|
|||
return String.Format("<C{1}>{0}<C>", text, (int)index);
|
||||
}
|
||||
|
||||
public abstract string Render(MenuItem selected);
|
||||
public abstract string Render(MenuItem? selected);
|
||||
|
||||
public abstract void CreateMenu(ToolStripItemCollection collection);
|
||||
public abstract void Update();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue