mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-13 00:42:49 -05:00
fix: Privacy audio null property
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user