diff --git a/app/AppConfig.cs b/app/AppConfig.cs index cfb6fa26..76780195 100644 --- a/app/AppConfig.cs +++ b/app/AppConfig.cs @@ -69,7 +69,6 @@ public class AppConfig { config = new Dictionary(); config["performance_mode"] = 0; - config["auto_apply_power_plan"] = 1; string jsonString = JsonSerializer.Serialize(config); File.WriteAllText(configFile, jsonString); } diff --git a/app/Extra.Designer.cs b/app/Extra.Designer.cs index cbf1945d..76a6cdcb 100644 --- a/app/Extra.Designer.cs +++ b/app/Extra.Designer.cs @@ -74,7 +74,6 @@ namespace GHelper checkSleepLid = new CheckBox(); checkShutdownLid = new CheckBox(); groupOther = new GroupBox(); - checkApplyWindowsPowerMode = new CheckBox(); checkKeyboardAuto = new CheckBox(); checkUSBC = new CheckBox(); checkNoOverdrive = new CheckBox(); diff --git a/app/Extra.cs b/app/Extra.cs index eae36690..9209c3a2 100644 --- a/app/Extra.cs +++ b/app/Extra.cs @@ -73,7 +73,6 @@ namespace GHelper checkNoOverdrive.Text = Properties.Strings.DisableOverdrive; checkTopmost.Text = Properties.Strings.WindowTop; checkUSBC.Text = Properties.Strings.OptimizedUSBC; - checkApplyWindowsPowerMode.Text = Properties.Strings.ApplyWindowsPowerPlan; labelBacklight.Text = Properties.Strings.Keyboard; labelBacklightBar.Text = Properties.Strings.Lightbar; @@ -177,8 +176,6 @@ namespace GHelper checkUSBC.Checked = (Program.config.getConfig("optimized_usbc") == 1); checkUSBC.CheckedChanged += CheckUSBC_CheckedChanged; - checkApplyWindowsPowerMode.Checked = Program.config.getConfig("auto_apply_power_plan") == 1; - int kb_brightness = Program.config.getConfig("keyboard_brightness"); trackBrightness.Value = (kb_brightness >= 0 && kb_brightness <= 3) ? kb_brightness : 3; @@ -302,11 +299,5 @@ namespace GHelper Top = Program.settingsForm.Top; Left = Program.settingsForm.Left - Width - 5; } - - private void checkApplyWindowsPowerMode_CheckedChanged(object sender, EventArgs e) - { - CheckBox chk = (CheckBox)sender; - Program.config.setConfig("auto_apply_power_plan", chk.Checked ? 1 : 0); - } } } diff --git a/app/Properties/Strings.Designer.cs b/app/Properties/Strings.Designer.cs index bd136139..1d7a5479 100644 --- a/app/Properties/Strings.Designer.cs +++ b/app/Properties/Strings.Designer.cs @@ -169,16 +169,7 @@ namespace GHelper.Properties { } /// - /// Looks up a localized string similar to Auto Adjust Windows Power Plan. - /// - internal static string ApplyWindowsPowerPlan { - get { - return ResourceManager.GetString("ApplyWindowsPowerPlan", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Breathe. + /// Looks up a localized string similar to Breathe. /// internal static string AuraBreathe { get { diff --git a/app/Properties/Strings.de.resx b/app/Properties/Strings.de.resx index a4ea4fb9..32da890a 100644 --- a/app/Properties/Strings.de.resx +++ b/app/Properties/Strings.de.resx @@ -94,9 +94,6 @@ Apply Power Limits - - Auto Adjust Windows Power Plan - Breathe diff --git a/app/Properties/Strings.es.resx b/app/Properties/Strings.es.resx index 37c76352..791c96dd 100644 --- a/app/Properties/Strings.es.resx +++ b/app/Properties/Strings.es.resx @@ -153,9 +153,6 @@ Aplicar límites de energía - - Auto Adjust Windows Power Plan - Respiración diff --git a/app/Properties/Strings.fr.resx b/app/Properties/Strings.fr.resx index 40e9f2b4..32da890a 100644 --- a/app/Properties/Strings.fr.resx +++ b/app/Properties/Strings.fr.resx @@ -301,9 +301,6 @@ Run on Startup - - Auto Adjust Windows Power Plan - Shutdown diff --git a/app/Properties/Strings.it.resx b/app/Properties/Strings.it.resx index a4ea4fb9..32da890a 100644 --- a/app/Properties/Strings.it.resx +++ b/app/Properties/Strings.it.resx @@ -94,9 +94,6 @@ Apply Power Limits - - Auto Adjust Windows Power Plan - Breathe diff --git a/app/Properties/Strings.resx b/app/Properties/Strings.resx index 6d47593a..d255a48f 100644 --- a/app/Properties/Strings.resx +++ b/app/Properties/Strings.resx @@ -153,9 +153,6 @@ Apply Power Limits - - Auto Adjust Windows Power Plan - Breathe diff --git a/app/Properties/Strings.tr.resx b/app/Properties/Strings.tr.resx index 1e9811f7..37b7146e 100644 --- a/app/Properties/Strings.tr.resx +++ b/app/Properties/Strings.tr.resx @@ -153,9 +153,6 @@ Güç Sınırlarını Uygula - - Auto Adjust Windows Power Plan - Nefes diff --git a/app/Properties/Strings.uk.resx b/app/Properties/Strings.uk.resx index f2c89463..f2df1532 100644 --- a/app/Properties/Strings.uk.resx +++ b/app/Properties/Strings.uk.resx @@ -153,9 +153,6 @@ Застосувати потужність - - Auto Adjust Windows Power Plan - Дихання diff --git a/app/Properties/Strings.zh-CN.resx b/app/Properties/Strings.zh-CN.resx index 98fbf9f2..65426d2d 100644 --- a/app/Properties/Strings.zh-CN.resx +++ b/app/Properties/Strings.zh-CN.resx @@ -153,9 +153,6 @@ 应用功率限制 - - Auto Adjust Windows Power Plan - 呼吸 diff --git a/app/Properties/Strings.zh-TW.resx b/app/Properties/Strings.zh-TW.resx index ac4c8472..9b9b6bff 100644 --- a/app/Properties/Strings.zh-TW.resx +++ b/app/Properties/Strings.zh-TW.resx @@ -153,9 +153,6 @@ 套用功率限制 - - Auto Adjust Windows Power Plan - 呼吸 diff --git a/app/Settings.cs b/app/Settings.cs index 3a796f8e..5552f6ea 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1286,13 +1286,11 @@ namespace GHelper AutoFans(); AutoPower(1000); - 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.getConfigPerfString("scheme") is not null) + NativeMethods.SetPowerScheme(Program.config.getConfigPerfString("scheme")); + else + NativeMethods.SetPowerScheme(PerformanceMode); if (Program.config.getConfigPerf("auto_boost") != -1) {