Merge pull request #11579 from Pokechu22/audio-stretching-label-enable

AudioPane: Fix inconsistent initial state of audio stretching labels
This commit is contained in:
Admiral H. Curtiss 2023-02-18 13:45:57 +01:00 committed by GitHub
commit dfc0f12483
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,8 +247,10 @@ void AudioPane::LoadSettings()
// Stretch // Stretch
m_stretching_enable->setChecked(Config::Get(Config::MAIN_AUDIO_STRETCH)); m_stretching_enable->setChecked(Config::Get(Config::MAIN_AUDIO_STRETCH));
m_stretching_buffer_label->setEnabled(m_stretching_enable->isChecked());
m_stretching_buffer_slider->setValue(Config::Get(Config::MAIN_AUDIO_STRETCH_LATENCY)); m_stretching_buffer_slider->setValue(Config::Get(Config::MAIN_AUDIO_STRETCH_LATENCY));
m_stretching_buffer_slider->setEnabled(m_stretching_enable->isChecked()); m_stretching_buffer_slider->setEnabled(m_stretching_enable->isChecked());
m_stretching_buffer_indicator->setEnabled(m_stretching_enable->isChecked());
m_stretching_buffer_indicator->setText(tr("%1 ms").arg(m_stretching_buffer_slider->value())); m_stretching_buffer_indicator->setText(tr("%1 ms").arg(m_stretching_buffer_slider->value()));
#ifdef _WIN32 #ifdef _WIN32