Merge pull request #15165 from wayne-chen/fixMuteStateWarning-master

Case 21684: Microphone is still live after reopening Interface
This commit is contained in:
Wayne Chen 2019-03-25 11:14:29 -07:00 committed by GitHub
commit 0676e4de5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,6 +228,9 @@ void Audio::loadData() {
_hmdMuted = _hmdMutedSetting.get();
_pttDesktop = _pttDesktopSetting.get();
_pttHMD = _pttHMDSetting.get();
auto client = DependencyManager::get<AudioClient>().data();
QMetaObject::invokeMethod(client, "setMuted", Q_ARG(bool, isMuted()), Q_ARG(bool, false));
}
bool Audio::getPTTHMD() const {