island: show mic_off in the privacy group when the mic is muted (#4027)

port 2.0
This commit is contained in:
Mario Mohar authored and GitHub committed 2026-10-30 09:15:32 -04:00
1 parent caabd9228b
commit 46a12d9152
1 file changed
+6 -1
@@ -631,7 +631,12 @@ Item {
spacing: Theme.spacingXXS
PrivacyIcon {
name: "mic"
// Same muted check as the bar's PrivacyIndicator
name: {
const sourceAudio = AudioService.source?.audio;
const muted = !sourceAudio || sourceAudio.muted || sourceAudio.volume === 0.0;
return muted ? "mic_off" : "mic";
}
active: PrivacyService.microphoneActive
}