Revert "Revert "Adjustment of Windows Power Overlay is now optional""

This reverts commit 8804d19567.
This commit is contained in:
Carsten Braun
2023-05-16 12:21:28 +02:00
parent 8590d0301a
commit ac5fc3f96e
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)
{