mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-05 22:35:38 +00:00
Show refresh rate only if many available
This commit is contained in:
parent
a3bb9e19ff
commit
0021f1b083
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ namespace PowerControl
|
|||
ResetValue = () => { return Helpers.PhysicalMonitorBrightnessController.GetRefreshRates().Max(); },
|
||||
OptionsValues = delegate()
|
||||
{
|
||||
return Helpers.PhysicalMonitorBrightnessController.GetRefreshRates().Select(item => (object)item).ToArray();
|
||||
var refreshRates = Helpers.PhysicalMonitorBrightnessController.GetRefreshRates();
|
||||
if (refreshRates.Count() > 1)
|
||||
return refreshRates.Select(item => (object)item).ToArray();
|
||||
return null;
|
||||
},
|
||||
CurrentValue = delegate()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue