From 507b516f8906eea83d2f3461298fbf99190cbe77 Mon Sep 17 00:00:00 2001 From: purian23 Date: Mon, 20 Oct 2025 21:02:33 -0400 Subject: [PATCH] fix: Privacy audio null property --- Modules/DankBar/Widgets/PrivacyIndicator.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Modules/DankBar/Widgets/PrivacyIndicator.qml b/Modules/DankBar/Widgets/PrivacyIndicator.qml index 03ad32bc..3ca4b1fe 100644 --- a/Modules/DankBar/Widgets/PrivacyIndicator.qml +++ b/Modules/DankBar/Widgets/PrivacyIndicator.qml @@ -60,7 +60,8 @@ Rectangle { DankIcon { name: { - let muted = AudioService.source.audio.muted || AudioService.source.audio.volume === 0.0 + const sourceAudio = AudioService.source?.audio + const muted = !sourceAudio || sourceAudio.muted || sourceAudio.volume === 0.0 if (muted) return "mic_off" return "mic" } @@ -130,7 +131,8 @@ Rectangle { DankIcon { name: { - let muted = AudioService.source.audio.muted || AudioService.source.audio.volume === 0.0 + const sourceAudio = AudioService.source?.audio + const muted = !sourceAudio || sourceAudio.muted || sourceAudio.volume === 0.0 if (muted) return "mic_off" return "mic" }