From 0c3ca1655021de44692134e6378ce2806a359854 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:06:21 -0600 Subject: [PATCH] Fix badge hover spam - remove loadStatus() on mouseenter Root cause: - onmouseenter was calling loadStatus() which enumerates ALL devices - loadStatus() calls: get_audio_output_devices (12 devices), get_pipewire_sinks, get_hardware_audio_status - Each hover triggered 3 expensive backend calls + CPAL/ALSA enumeration - User reported "spam masivo en la consola" when hovering badge Solution: - Removed loadStatus() call from onmouseenter (line 180) - Only set isHovering = true to show tooltip - Polling interval (1s) already keeps hardware status fresh - Tooltip now shows cached data instead of triggering new enumeration Impact: - Hover now instant with zero backend calls - Console spam eliminated - Battery/CPU usage reduced significantly - Tooltip still shows current data via 1s polling --- src/lib/components/AudioOutputBadges.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/AudioOutputBadges.svelte b/src/lib/components/AudioOutputBadges.svelte index 0af40d8c5..3d2faca4b 100644 --- a/src/lib/components/AudioOutputBadges.svelte +++ b/src/lib/components/AudioOutputBadges.svelte @@ -177,7 +177,7 @@