From 76d13c0d39a8f000519bee2ee8aec2d305e5b4bc Mon Sep 17 00:00:00 2001 From: QuarkZ <58784177+QuarkZ26@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:16:26 -0700 Subject: [PATCH] Update WindowIconRenderer.cs Fixes bug where tray icon doesn't show minimum battery for right earbud --- GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs b/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs index ae3f1a04..c7f2667c 100644 --- a/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs +++ b/GalaxyBudsClient/Utils/Interface/WindowIconRenderer.cs @@ -37,7 +37,7 @@ public static void UpdateDynamicIcon(IBasicStatusUpdate status) int? level = Settings.Data.DynamicTrayIconMode switch { - DynamicTrayIconModes.BatteryMin => Math.Min(batteryLeft, batteryLeft), + DynamicTrayIconModes.BatteryMin => Math.Min(batteryLeft, batteryRight), DynamicTrayIconModes.BatteryAvg => (batteryLeft + batteryRight) / 2, _ => null };