Fix for PTT not working comments

This commit is contained in:
RebeccaStankus 2019-08-23 13:43:15 -07:00
parent 85ee61af9d
commit 63038d12c2

View file

@ -102,7 +102,7 @@ void Audio::setMutedDesktop(bool isMuted) {
}
});
if (!isMuted && _settingsLoaded && !_pushingToTalk) {
// Disable Push-To-Talk if muted is changed to false. Settings also need to be loaded.
// If the user is not using Push-to-talk and muted is changed to false, disable Push-To-Talk. Settings also need to be loaded.
setPTTDesktop(isMuted);
}
if (changed) {
@ -133,7 +133,7 @@ void Audio::setMutedHMD(bool isMuted) {
}
});
if (!isMuted && _settingsLoaded && !_pushingToTalk) {
// Disable Push-To-Talk if muted is changed to false. Settings also need to be loaded.
// If the user is not using Push-to-talk and muted is changed to false, disable Push-To-Talk. Settings also need to be loaded.
setPTTHMD(isMuted);
}
if (changed) {