Skip to content

Commit

Permalink
Fix 80% battery charge limit for Legion Go resetting (#1075)
Browse files Browse the repository at this point in the history
* 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 <benjamin.lesueur@live.com>
  • Loading branch information
3 people authored Jun 13, 2024
1 parent 9022c50 commit 6a07a77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HandheldCompanion/Views/Pages/DevicePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a07a77

Please sign in to comment.