Remove unnecessary polling from AudioOutputBadges, refresh on hover instead

This commit is contained in:
vicrodh committed 2026-01-11 12:32:23 -06:00
1 parent 3efac409bc
commit 2d908c7b12
1 file changed
+2 -5
+2 -5
View File
@@ -89,16 +89,13 @@
onMount(() => {
loadStatus();
// Poll less frequently - only needed to detect settings changes
const interval = setInterval(loadStatus, 10000);
return () => clearInterval(interval);
// No polling - data is loaded once on mount and refreshed on hover
});
</script>
<div
class="audio-badges"
onmouseenter={() => isHovering = true}
onmouseenter={() => { isHovering = true; loadStatus(); }}
onmouseleave={() => isHovering = false}
>
<!-- DAC Badge -->