From 5019056f01559f5835299601001c2aae1da118da 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 0725e5e8c..136304067 100644 --- a/HandheldCompanion/Views/Pages/DevicePage.xaml.cs +++ b/HandheldCompanion/Views/Pages/DevicePage.xaml.cs @@ -187,6 +187,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);