AudioPane: Do not enable Dolby Pro Logic II quality slider if DPLII is disabled

This commit is contained in:
Silent 2020-03-06 21:13:45 +01:00
parent dcaabcac03
commit d1f6f12f78
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 5 additions and 3 deletions

View File

@ -337,7 +337,8 @@ void AudioPane::OnDspChanged()
m_dolby_pro_logic->setEnabled(AudioCommon::SupportsDPL2Decoder(backend) && m_dolby_pro_logic->setEnabled(AudioCommon::SupportsDPL2Decoder(backend) &&
!m_dsp_hle->isChecked()); !m_dsp_hle->isChecked());
EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked()); EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked() &&
m_dolby_pro_logic->isChecked());
} }
void AudioPane::OnBackendChanged() void AudioPane::OnBackendChanged()
@ -346,7 +347,8 @@ void AudioPane::OnBackendChanged()
m_dolby_pro_logic->setEnabled(AudioCommon::SupportsDPL2Decoder(backend) && m_dolby_pro_logic->setEnabled(AudioCommon::SupportsDPL2Decoder(backend) &&
!m_dsp_hle->isChecked()); !m_dsp_hle->isChecked());
EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked()); EnableDolbyQualityWidgets(AudioCommon::SupportsDPL2Decoder(backend) && !m_dsp_hle->isChecked() &&
m_dolby_pro_logic->isChecked());
if (m_latency_control_supported) if (m_latency_control_supported)
{ {
m_latency_label->setEnabled(AudioCommon::SupportsLatencyControl(backend)); m_latency_label->setEnabled(AudioCommon::SupportsLatencyControl(backend));
@ -382,7 +384,7 @@ void AudioPane::OnEmulationStateChanged(bool running)
if (AudioCommon::SupportsDPL2Decoder(SConfig::GetInstance().sBackend) && !m_dsp_hle->isChecked()) if (AudioCommon::SupportsDPL2Decoder(SConfig::GetInstance().sBackend) && !m_dsp_hle->isChecked())
{ {
m_dolby_pro_logic->setEnabled(!running); m_dolby_pro_logic->setEnabled(!running);
EnableDolbyQualityWidgets(!running); EnableDolbyQualityWidgets(!running && m_dolby_pro_logic->isChecked());
} }
if (m_latency_control_supported) if (m_latency_control_supported)
{ {