Adjustment of Windows Power Overlay is now optional

This commit is contained in:
Carsten Braun
2023-05-15 13:23:20 +02:00
parent a5541dfe10
commit 2a82e41894
14 changed files with 79 additions and 13 deletions

View File

@@ -1238,11 +1238,13 @@ namespace GHelper
AutoFans();
AutoPower(1000);
if (Program.config.getConfigPerfString("scheme") is not null)
NativeMethods.SetPowerScheme(Program.config.getConfigPerfString("scheme"));
else
NativeMethods.SetPowerScheme(PerformanceMode);
if (Program.config.getConfigPerf("auto_apply_power_plan") == 1)
{
if (Program.config.getConfigPerfString("scheme") is not null)
NativeMethods.SetPowerScheme(Program.config.getConfigPerfString("scheme"));
else
NativeMethods.SetPowerScheme(PerformanceMode);
}
if (Program.config.getConfigPerf("auto_boost") != -1)
{