mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
fix music playing when it shouldn't (#1203)
This commit is contained in:
parent
394b7fa671
commit
93317911eb
|
@ -53,7 +53,7 @@ void GameGridFrame::onCurrentCellChanged(int currentRow, int currentColumn, int
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameGridFrame::PlayBackgroundMusic(QString path) {
|
void GameGridFrame::PlayBackgroundMusic(QString path) {
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty() || !Config::getPlayBGM()) {
|
||||||
BackgroundMusicPlayer::getInstance().stopMusic();
|
BackgroundMusicPlayer::getInstance().stopMusic();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ void GameListFrame::onCurrentCellChanged(int currentRow, int currentColumn, int
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameListFrame::PlayBackgroundMusic(QTableWidgetItem* item) {
|
void GameListFrame::PlayBackgroundMusic(QTableWidgetItem* item) {
|
||||||
if (!item) {
|
if (!item || !Config::getPlayBGM()) {
|
||||||
BackgroundMusicPlayer::getInstance().stopMusic();
|
BackgroundMusicPlayer::getInstance().stopMusic();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue