PowerControl: Persist most of settings in UserProfiles

This commit is contained in:
Kamil Trzciński 2023-01-05 23:52:23 +01:00
parent 2d5f8c498f
commit c4076ceb45
6 changed files with 6 additions and 0 deletions

View file

@ -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 ()

View file

@ -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 ()

View file

@ -7,6 +7,7 @@ namespace PowerControl.Options
public static Menu.MenuItemWithOptions EnabledInstance = new Menu.MenuItemWithOptions()
{
Name = "OSD",
PersistentKey = "PerformanceOverlay",
ApplyDelay = 500,
OptionsValues = delegate ()
{

View file

@ -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;

View file

@ -8,6 +8,7 @@ namespace PowerControl.Options
public static Menu.MenuItemWithOptions Instance = new Menu.MenuItemWithOptions()
{
Name = "Resolution",
PersistentKey = "Resolution",
ApplyDelay = 1000,
ResetValue = () =>
{

View file

@ -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"; },