mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 03:32:42 +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: {
|
||||
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