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 <[email protected]>
Co-authored-by: Lesueur Benjamin <[email protected]>
  • Loading branch information
3 people committed Jun 13, 2024
1 parent ffd2b87 commit 5019056
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 @@ -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);
Expand Down

0 comments on commit 5019056

Please sign in to comment.