corrected the behaviour for ctrl-m so that when you unmute during push to talk you will see it reflected in the audio icon color

This commit is contained in:
amantley 2019-05-01 14:00:56 -07:00
parent c1ee4deb12
commit 4b7b416abf

View file

@ -4298,6 +4298,10 @@ void Application::keyPressEvent(QKeyEvent* event) {
if (isMeta) {
auto audioClient = DependencyManager::get<AudioClient>();
audioClient->setMuted(!audioClient->isMuted());
auto audioScriptingInterface = reinterpret_cast<scripting::Audio*>(DependencyManager::get<AudioScriptingInterface>().data());
if (audioScriptingInterface->getPTT()) {
audioScriptingInterface->setPushingToTalk(!audioClient->isMuted());
}
}
break;