Skip to content

Commit

Permalink
removed UpdateSettings()
Browse files Browse the repository at this point in the history
not needed, SettingsManager will iterate through all settings on startup anyway
  • Loading branch information
Valkirie committed Jun 4, 2024
1 parent ec81827 commit 4ea9570
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions HandheldCompanion/Devices/Lenovo/LegionGo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,6 @@ public LegionGo()
DefaultLayout.ButtonLayout[ButtonFlags.B8] = new List<IActions>() { new MouseActions { MouseType = MouseActionsType.ScrollDown } };

SettingsManager.SettingValueChanged += SettingsManager_SettingValueChanged;
UpdateSettings();

/*
Task<bool> task = Task.Run(async () => await GetFanFullSpeedAsync());
bool FanFullSpeed = task.Result;
*/
}

private void PowerProfileManager_Applied(PowerProfile profile, UpdateSource source)
Expand Down Expand Up @@ -443,11 +437,6 @@ public override string GetGlyph(ButtonFlags button)
return defaultGlyph;
}

protected void UpdateSettings()
{
SetBatteryChargeLimit(SettingsManager.GetBoolean("LegionBatteryChargeLimit"));
}

private void SettingsManager_SettingValueChanged(string name, object value)
{
switch (name)
Expand Down

0 comments on commit 4ea9570

Please sign in to comment.