don't allow clicking on push to talk in MicBarApplication

This commit is contained in:
Wayne Chen 2019-03-28 16:24:37 -07:00
parent f2b0e47c39
commit 3241d2f960

View file

@ -96,6 +96,9 @@ Rectangle {
hoverEnabled: true;
scrollGestureEnabled: false;
onClicked: {
if (pushToTalk) {
return;
}
AudioScriptingInterface.muted = !muted;
Tablet.playSound(TabletEnums.ButtonClick);
muted = Qt.binding(function() { return AudioScriptingInterface.muted; }); // restore binding