mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 15:40:13 +02:00
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:
parent
c1ee4deb12
commit
4b7b416abf
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue