From eb4255e1ac2e49b53c42bcd1e5b2635a6f903fb3 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Thu, 15 Jun 2017 18:21:23 -0400 Subject: [PATCH] fix audio checkbox bindings --- interface/resources/qml/hifi/audio/Audio.qml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/interface/resources/qml/hifi/audio/Audio.qml b/interface/resources/qml/hifi/audio/Audio.qml index 5401274080..a30aba2a6b 100644 --- a/interface/resources/qml/hifi/audio/Audio.qml +++ b/interface/resources/qml/hifi/audio/Audio.qml @@ -60,17 +60,26 @@ Rectangle { Audio.CheckBox { text: qsTr("Mute microphone"); checked: Audio.muted; - onCheckedChanged: { Audio.muted = checked; } + onClicked: { + Audio.muted = checked; + checked = Qt.binding(function() { return Audio.muted; }); // restore binding + } } Audio.CheckBox { text: qsTr("Enable noise reduction"); checked: Audio.noiseReduction; - onCheckedChanged: { Audio.noiseReduction = checked; } + onClicked: { + Audio.noiseReduction = checked; + checked = Qt.binding(function() { return Audio.noiseReduction; }); // restore binding + } } Audio.CheckBox { text: qsTr("Show audio level meter"); checked: AvatarInputs.showAudioTools; - onCheckedChanged: { AvatarInputs.showAudioTools = checked; } + onClicked: { + AvatarInputs.showAudioTools = checked; + checked = Qt.binding(function() { return AvatarInputs.showAudioTools; }); // restore binding + } } }