mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 01:12:48 +02:00
Merge pull request #669 from overte-org/fix/mic_log_spam
Fix MicBar to not spam thousands of TypeError messages on Windows
This commit is contained in:
commit
254b55c187
1 changed files with 10 additions and 2 deletions
|
@ -39,8 +39,16 @@ Rectangle {
|
|||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
AudioScriptingInterface.noiseGateOpened.connect(function() { micBar.gated = false; });
|
||||
AudioScriptingInterface.noiseGateClosed.connect(function() { micBar.gated = true; });
|
||||
AudioScriptingInterface.noiseGateOpened.connect(function() {
|
||||
if (micBar) {
|
||||
micBar.gated = false;
|
||||
}
|
||||
});
|
||||
AudioScriptingInterface.noiseGateClosed.connect(function() {
|
||||
if (micBar) {
|
||||
micBar.gated = true;
|
||||
}
|
||||
});
|
||||
HMD.displayModeChanged.connect(function() {
|
||||
muted = AudioScriptingInterface.muted;
|
||||
pushToTalk = AudioScriptingInterface.pushToTalk;
|
||||
|
|
Loading…
Reference in a new issue