This commit is contained in:
Serge
2023-10-03 13:37:56 +02:00
parent b8870ba3d5
commit 49d5df9bac
2 changed files with 7 additions and 1 deletions

View File

@@ -3,6 +3,12 @@
internal class BatteryControl
{
public static void ToggleBatteryLimitFull()
{
if (AppConfig.Is("charge_full")) SetBatteryChargeLimit();
else SetBatteryLimitFull();
}
public static void SetBatteryLimitFull()
{
AppConfig.Set("charge_full", 1);

View File

@@ -214,7 +214,7 @@ namespace GHelper
private void ButtonBatteryFull_Click(object? sender, EventArgs e)
{
BatteryControl.SetBatteryLimitFull();
BatteryControl.ToggleBatteryLimitFull();
}
private void ButtonBatteryFull_MouseLeave(object? sender, EventArgs e)