Merge pull request #385 from IceStormNG/windows-power-plan-changes-optional

Adjustment of Windows Power Overlay is now optional
This commit is contained in:
Serge
2023-05-16 11:30:41 +02:00
committed by GitHub
14 changed files with 55 additions and 6 deletions

View File

@@ -1286,11 +1286,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)
{