diff --git a/app/Battery/BatteryControl.cs b/app/Battery/BatteryControl.cs index 70bf7aa9..aab11c86 100644 --- a/app/Battery/BatteryControl.cs +++ b/app/Battery/BatteryControl.cs @@ -2,7 +2,7 @@ namespace GHelper.Battery { - internal class BatteryControl + public static class BatteryControl { static bool _chargeFull = AppConfig.Is("charge_full"); diff --git a/app/Settings.cs b/app/Settings.cs index 6ccca8d1..08258bcb 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -1786,7 +1786,7 @@ namespace GHelper public void VisualiseBatteryFull() { - if (AppConfig.Is("charge_full")) + if (BatteryControl.chargeFull) { buttonBatteryFull.BackColor = colorStandard; buttonBatteryFull.ForeColor = SystemColors.ControlLightLight;