Merge pull request #9379 from Pokechu22/audio-latency-disable

Fix latency field being initially enabled on audio backends not supporting it
This commit is contained in:
Léo Lam 2020-12-29 17:28:10 +01:00 committed by GitHub
commit 15d4ddf5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,7 +385,8 @@ void AudioPane::OnEmulationStateChanged(bool running)
m_dolby_pro_logic->setEnabled(!running);
EnableDolbyQualityWidgets(!running && m_dolby_pro_logic->isChecked());
}
if (m_latency_control_supported)
if (m_latency_control_supported &&
AudioCommon::SupportsLatencyControl(SConfig::GetInstance().sBackend))
{
m_latency_label->setEnabled(!running);
m_latency_spin->setEnabled(!running);