Skip to content

Commit 296527d

Browse files
committed
UI crash fix #1992
1 parent 9e08114 commit 296527d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/Battery/BatteryControl.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace GHelper.Battery
1+
using GHelper.Properties;
2+
3+
namespace GHelper.Battery
24
{
35
internal class BatteryControl
46
{
@@ -19,7 +21,7 @@ public static void SetBatteryLimitFull()
1921
public static void UnSetBatteryLimitFull()
2022
{
2123
AppConfig.Set("charge_full", 0);
22-
Program.settingsForm.VisualiseBatteryFull();
24+
Program.settingsForm.Invoke(Program.settingsForm.VisualiseBatteryFull);
2325
}
2426

2527
public static void AutoBattery(bool init = false)

0 commit comments

Comments
 (0)