mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-25 01:40:26 +01:00
Fix PowerControl colors
This commit is contained in:
parent
092f96a9ab
commit
2aab48d2d4
|
|
@ -233,7 +233,7 @@ namespace PowerControl
|
|||
|
||||
if (option == null)
|
||||
text = Color("?", Colors.White);
|
||||
else if (Object.Equals(option, SelectedOption))
|
||||
else if (Object.Equals(option, SelectedOption ?? ActiveOption))
|
||||
text = Color(option.ToString(), Colors.Red);
|
||||
else if(Object.Equals(option, ActiveOption))
|
||||
text = Color(option.ToString(), Colors.White);
|
||||
|
|
@ -254,7 +254,7 @@ namespace PowerControl
|
|||
|
||||
output += optionText(SelectedOption ?? ActiveOption);
|
||||
|
||||
if (!Object.Equals(ActiveOption, SelectedOption))
|
||||
if (SelectedOption != null && !Object.Equals(ActiveOption, SelectedOption))
|
||||
output += " (active: " + optionText(ActiveOption) + ")";
|
||||
|
||||
return output;
|
||||
|
|
|
|||
Loading…
Reference in a new issue