From 296527d994c4870cd931f3c1e7420935e47b2717 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sun, 28 Jan 2024 16:04:41 +0100 Subject: [PATCH] UI crash fix https://github.com/seerge/g-helper/issues/1992 --- app/Battery/BatteryControl.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Battery/BatteryControl.cs b/app/Battery/BatteryControl.cs index 6f41b246..e1b20860 100644 --- a/app/Battery/BatteryControl.cs +++ b/app/Battery/BatteryControl.cs @@ -1,4 +1,6 @@ -namespace GHelper.Battery +using GHelper.Properties; + +namespace GHelper.Battery { internal class BatteryControl { @@ -19,7 +21,7 @@ public static void UnSetBatteryLimitFull() { AppConfig.Set("charge_full", 0); - Program.settingsForm.VisualiseBatteryFull(); + Program.settingsForm.Invoke(Program.settingsForm.VisualiseBatteryFull); } public static void AutoBattery(bool init = false)