From 70a54153de7175986ddd8fa708341b39fd847a10 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Mon, 31 Mar 2025 22:05:33 +1100
Subject: bar: add error for no wireplumber

---
 src/modules/bar.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/modules/bar.tsx')

diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx
index 124636a..995d3a3 100644
--- a/src/modules/bar.tsx
+++ b/src/modules/bar.tsx
@@ -596,7 +596,7 @@ export default ({ monitor }: { monitor: Monitor }) => {
                         expand
                         onScroll={(_, event) => {
                             const speaker = AstalWp.get_default()?.audio.defaultSpeaker;
-                            if (!speaker) return;
+                            if (!speaker) return console.error("Unable to connect to WirePlumber.");
                             speaker.mute = false;
                             if (event.delta_y > 0) speaker.volume -= 0.1;
                             else speaker.volume += 0.1;
-- 
cgit v1.2.3-freya

