From 4ea9570c6c5977fa852b518a765bb5af368286c1 Mon Sep 17 00:00:00 2001 From: Lesueur Benjamin Date: Tue, 4 Jun 2024 12:19:24 +0200 Subject: [PATCH] removed UpdateSettings() not needed, SettingsManager will iterate through all settings on startup anyway --- HandheldCompanion/Devices/Lenovo/LegionGo.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/HandheldCompanion/Devices/Lenovo/LegionGo.cs b/HandheldCompanion/Devices/Lenovo/LegionGo.cs index 87e4cebc6..d968a14ca 100644 --- a/HandheldCompanion/Devices/Lenovo/LegionGo.cs +++ b/HandheldCompanion/Devices/Lenovo/LegionGo.cs @@ -224,12 +224,6 @@ public LegionGo() DefaultLayout.ButtonLayout[ButtonFlags.B8] = new List() { new MouseActions { MouseType = MouseActionsType.ScrollDown } }; SettingsManager.SettingValueChanged += SettingsManager_SettingValueChanged; - UpdateSettings(); - - /* - Task task = Task.Run(async () => await GetFanFullSpeedAsync()); - bool FanFullSpeed = task.Result; - */ } private void PowerProfileManager_Applied(PowerProfile profile, UpdateSource source) @@ -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)