mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-01-03 07:09:58 +01:00
PowerControl: Persist most of settings in UserProfiles
This commit is contained in:
parent
2d5f8c498f
commit
c4076ceb45
|
|
@ -7,6 +7,7 @@ namespace PowerControl.Options
|
|||
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
||||
{
|
||||
Name = "Colors",
|
||||
PersistentKey = "GPUColors",
|
||||
ApplyDelay = 1000,
|
||||
Options = Enum.GetNames<DCE.Mode>(),
|
||||
CurrentValue = delegate ()
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ namespace PowerControl.Options
|
|||
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
||||
{
|
||||
Name = "GPU Scaling",
|
||||
PersistentKey = "GPUScaling",
|
||||
ApplyDelay = 1000,
|
||||
Options = Enum.GetNames<GPUScaling.ScalingMode>().Prepend("Off").ToArray(),
|
||||
CurrentValue = delegate ()
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ namespace PowerControl.Options
|
|||
public static Menu.MenuItemWithOptions EnabledInstance = new Menu.MenuItemWithOptions()
|
||||
{
|
||||
Name = "OSD",
|
||||
PersistentKey = "PerformanceOverlay",
|
||||
ApplyDelay = 500,
|
||||
OptionsValues = delegate ()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ namespace PowerControl.Options
|
|||
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
||||
{
|
||||
Name = "Profiles",
|
||||
ApplyDelay = 500,
|
||||
OptionsValues = delegate ()
|
||||
{
|
||||
var currentProfileSettings = Controller?.CurrentProfileSettings;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ namespace PowerControl.Options
|
|||
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
||||
{
|
||||
Name = "Resolution",
|
||||
PersistentKey = "Resolution",
|
||||
ApplyDelay = 1000,
|
||||
ResetValue = () =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ namespace PowerControl.Options
|
|||
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
|
||||
{
|
||||
Name = "SMT",
|
||||
PersistentKey = "SMT",
|
||||
ApplyDelay = 500,
|
||||
Options = { "No", "Yes" },
|
||||
ResetValue = () => { return "Yes"; },
|
||||
|
|
|
|||
Loading…
Reference in a new issue