Trying to fix a weird binding bug with NToggle
This commit is contained in:
parent
c371ea68a3
commit
fc4bd796f1
12 changed files with 73 additions and 73 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue