From 6a07a776796ac188ef5ee53db482c1d0e10b86ef Mon Sep 17 00:00:00 2001 From: Moyogi <22126651+moyogii@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:09:27 -0500 Subject: [PATCH] Fix 80% battery charge limit for Legion Go resetting (#1075) * Add 80% battery charge limit for Legion Go * removed UpdateSettings() not needed, SettingsManager will iterate through all settings on startup anyway * Fix Legion Go battery charge limit toggle not saving --------- Co-authored-by: Plasmid <22126651+PlasmidEve@users.noreply.github.com> Co-authored-by: Lesueur Benjamin --- HandheldCompanion/Views/Pages/DevicePage.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HandheldCompanion/Views/Pages/DevicePage.xaml.cs b/HandheldCompanion/Views/Pages/DevicePage.xaml.cs index 94ab243fa..0b6307605 100644 --- a/HandheldCompanion/Views/Pages/DevicePage.xaml.cs +++ b/HandheldCompanion/Views/Pages/DevicePage.xaml.cs @@ -165,6 +165,9 @@ private void SettingsManager_SettingValueChanged(string? name, object value) case "LegionControllerGyroIndex": ComboBox_GyroController.SelectedIndex = Convert.ToInt32(value); break; + case "LegionBatteryChargeLimit": + Toggle_LegionBatteryChargeLimit.IsOn = Convert.ToBoolean(value); + break; case "SensorSelection": { int idx = Convert.ToInt32(value);