Accomodate for non-exitent settings value

This commit is contained in:
Carsten Braun
2023-05-16 13:30:08 +02:00
parent b74b9ae257
commit 69e5a0448e

View File

@@ -1286,7 +1286,7 @@ namespace GHelper
AutoFans();
AutoPower(1000);
if (Program.config.getConfigPerf("auto_apply_power_plan") == 1)
if (Program.config.getConfigPerf("auto_apply_power_plan") != 0)
{
if (Program.config.getConfigPerfString("scheme") is not null)
NativeMethods.SetPowerScheme(Program.config.getConfigPerfString("scheme"));