Qt: Fix volume reset button in game properties

This commit is contained in:
Stenzek 2024-05-04 23:33:18 +10:00 committed by Connor McLaughlin
parent ddd2018e81
commit 12af031193
1 changed files with 2 additions and 2 deletions

View File

@ -486,9 +486,9 @@ void AudioSettingsWidget::resetVolume(bool fast_forward)
if (m_dialog->isPerGameSettings())
{
m_dialog->removeSettingValue("Audio", key);
m_dialog->removeSettingValue("SPU2/Output", key);
const int value = m_dialog->getEffectiveIntValue("Audio", key, 100);
const int value = m_dialog->getEffectiveIntValue("SPU2/Output", key, 100);
QSignalBlocker sb(slider);
slider->setValue(value);
label->setText(QStringLiteral("%1%2").arg(value).arg(tr("%")));