mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-09-20 16:28:32 +00:00
stop music when checkbox unchecked
This commit is contained in:
parent
086116ffb6
commit
698afae9fd
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue