diff --git a/src/blackgui/components/audiodevicevolumesetupcomponent.cpp b/src/blackgui/components/audiodevicevolumesetupcomponent.cpp index db31affa4..deee0b70e 100644 --- a/src/blackgui/components/audiodevicevolumesetupcomponent.cpp +++ b/src/blackgui/components/audiodevicevolumesetupcomponent.cpp @@ -75,7 +75,7 @@ namespace BlackGui // it takes a moment until the settings are sychronized // this is leading to undesired "save settings" messages and played sounds QPointer myself(this); - QTimer::singleShot(1000, this, [ = ] + QTimer::singleShot(2000, this, [ = ] { if (!myself || !sGui || sGui->isShuttingDown()) { return; } this->init(); @@ -136,7 +136,15 @@ namespace BlackGui c = connect(sGui->getCContextAudioBase()->afvClient(), &CAfvClient::updatedFromOwnAircraftCockpit, this, &CAudioDeviceVolumeSetupComponent::onUpdatedClientWithCockpitData, Qt::QueuedConnection); Q_ASSERT(c); - this->onUpdatedClientWithCockpitData(); + QPointer myself(this); + c = connect(sGui->getCContextAudioBase()->afvClient(), &CAfvClient::connectionStatusChanged, this, [ = ] + { + if (!myself || !sGui || sGui->isShuttingDown()) { return; } + myself->setTransmitReceiveInUiFromVoiceClient(); + }, Qt::QueuedConnection); + Q_ASSERT(c); + + this->setTransmitReceiveInUiFromVoiceClient(); } Q_UNUSED(c) }