mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
stop music when checkbox unchecked
This commit is contained in:
parent
086116ffb6
commit
698afae9fd
@ -145,8 +145,15 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
|
||||
|
||||
connect(ui->BGMVolumeSlider, &QSlider::valueChanged, this,
|
||||
[](float val) { Config::setBGMvolume(val); });
|
||||
|
||||
connect(ui->BGMVolumeSlider, &QSlider::valueChanged, this,
|
||||
[](float val) { BackgroundMusicPlayer::getInstance().setVolume(val); });
|
||||
|
||||
connect(ui->playBGMCheckBox, &QCheckBox::stateChanged, this, [this](int state) {
|
||||
if (state == Qt::Unchecked) {
|
||||
BackgroundMusicPlayer::getInstance().stopMusic();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// GPU TAB
|
||||
|
Loading…
Reference in New Issue
Block a user