From 85ee61af9d672a5a2ff53c0ef298c5a5d6293603 Mon Sep 17 00:00:00 2001 From: RebeccaStankus Date: Fri, 23 Aug 2019 13:35:58 -0700 Subject: [PATCH] Fix for PTT not working --- interface/src/scripting/Audio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/scripting/Audio.cpp b/interface/src/scripting/Audio.cpp index 8d9e57ad93..eefc6eec75 100644 --- a/interface/src/scripting/Audio.cpp +++ b/interface/src/scripting/Audio.cpp @@ -101,7 +101,7 @@ void Audio::setMutedDesktop(bool isMuted) { } } }); - if (!isMuted && _settingsLoaded) { + if (!isMuted && _settingsLoaded && !_pushingToTalk) { // Disable Push-To-Talk if muted is changed to false. Settings also need to be loaded. setPTTDesktop(isMuted); } @@ -132,7 +132,7 @@ void Audio::setMutedHMD(bool isMuted) { } } }); - if (!isMuted && _settingsLoaded) { + if (!isMuted && _settingsLoaded && !_pushingToTalk) { // Disable Push-To-Talk if muted is changed to false. Settings also need to be loaded. setPTTHMD(isMuted); }