mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
Fix MicBar to not spam thousands of TypeError messages on Windows
This commit is contained in:
parent
a681a16406
commit
61e9ee6ce0
1 changed files with 10 additions and 2 deletions
|
@ -39,8 +39,16 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
AudioScriptingInterface.noiseGateOpened.connect(function() { micBar.gated = false; });
|
AudioScriptingInterface.noiseGateOpened.connect(function() {
|
||||||
AudioScriptingInterface.noiseGateClosed.connect(function() { micBar.gated = true; });
|
if (micBar) {
|
||||||
|
micBar.gated = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
AudioScriptingInterface.noiseGateClosed.connect(function() {
|
||||||
|
if (micBar) {
|
||||||
|
micBar.gated = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
HMD.displayModeChanged.connect(function() {
|
HMD.displayModeChanged.connect(function() {
|
||||||
muted = AudioScriptingInterface.muted;
|
muted = AudioScriptingInterface.muted;
|
||||||
pushToTalk = AudioScriptingInterface.pushToTalk;
|
pushToTalk = AudioScriptingInterface.pushToTalk;
|
||||||
|
|
Loading…
Reference in a new issue