Trying to fix a weird binding bug with NToggle

This commit is contained in:
quadbyte 2025-08-15 23:15:16 -04:00
parent c371ea68a3
commit fc4bd796f1
12 changed files with 73 additions and 73 deletions

View file

@ -123,10 +123,10 @@ ColumnLayout {
NToggle {
label: "Mute AudioService"
description: "Mute or unmute the default audio output"
value: AudioService.muted
onToggled: function (newValue) {
checked: AudioService.muted
onToggled: checked => {
if (AudioService.sink && AudioService.sink.audio) {
AudioService.sink.audio.muted = newValue
AudioService.sink.audio.muted = checked
}
}
}