mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-30 15:07:49 -04:00
island: show mic_off in the privacy group when the mic is muted (#4027)
port 2.0
(cherry picked from commit 46a12d9152)
This commit is contained in:
1 parent
381c805f4d
commit
684111e482
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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user