From a7e50f89ca0966ce8c1a4d05c7acba2b4143723b Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:21:58 +0100 Subject: [PATCH] Cleanup --- app/Battery/BatteryControl.cs | 2 +- app/Settings.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;