mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +02:00
fix audio checkbox bindings
This commit is contained in:
parent
3093a73ce1
commit
eb4255e1ac
1 changed files with 12 additions and 3 deletions
|
@ -60,17 +60,26 @@ Rectangle {
|
||||||
Audio.CheckBox {
|
Audio.CheckBox {
|
||||||
text: qsTr("Mute microphone");
|
text: qsTr("Mute microphone");
|
||||||
checked: Audio.muted;
|
checked: Audio.muted;
|
||||||
onCheckedChanged: { Audio.muted = checked; }
|
onClicked: {
|
||||||
|
Audio.muted = checked;
|
||||||
|
checked = Qt.binding(function() { return Audio.muted; }); // restore binding
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Audio.CheckBox {
|
Audio.CheckBox {
|
||||||
text: qsTr("Enable noise reduction");
|
text: qsTr("Enable noise reduction");
|
||||||
checked: Audio.noiseReduction;
|
checked: Audio.noiseReduction;
|
||||||
onCheckedChanged: { Audio.noiseReduction = checked; }
|
onClicked: {
|
||||||
|
Audio.noiseReduction = checked;
|
||||||
|
checked = Qt.binding(function() { return Audio.noiseReduction; }); // restore binding
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Audio.CheckBox {
|
Audio.CheckBox {
|
||||||
text: qsTr("Show audio level meter");
|
text: qsTr("Show audio level meter");
|
||||||
checked: AvatarInputs.showAudioTools;
|
checked: AvatarInputs.showAudioTools;
|
||||||
onCheckedChanged: { AvatarInputs.showAudioTools = checked; }
|
onClicked: {
|
||||||
|
AvatarInputs.showAudioTools = checked;
|
||||||
|
checked = Qt.binding(function() { return AvatarInputs.showAudioTools; }); // restore binding
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue