clang_format

This commit is contained in:
tGecko 2024-09-23 15:07:05 +02:00
parent 217d221a26
commit 39d806b50e
4 changed files with 3 additions and 5 deletions

View file

@ -21,7 +21,7 @@ void BackgroundMusicPlayer::playMusic(const QString& snd0path) {
}
QUrl newMusic = QUrl::fromLocalFile(snd0path);
if (m_mediaPlayer->playbackState() == QMediaPlayer::PlayingState &&
m_currentMusic == newMusic) {
m_currentMusic == newMusic) {
// already playing the correct music
return;
}

View file

@ -19,7 +19,6 @@ public:
void playMusic(const QString& snd0path);
void stopMusic();
private:
BackgroundMusicPlayer(QObject* parent = nullptr);
~BackgroundMusicPlayer();

View file

@ -508,7 +508,7 @@ void MainWindow::CreateConnects() {
&MainWindow::PlayBackgroundMusic);
}
void MainWindow::PlayBackgroundMusic () {
void MainWindow::PlayBackgroundMusic() {
if (isGameRunning || !Config::getPlayBGM()) {
BackgroundMusicPlayer::getInstance().stopMusic();
return;
@ -517,7 +517,7 @@ void MainWindow::PlayBackgroundMusic () {
int itemID = isTableList ? m_game_list_frame->currentItem()->row()
: m_game_grid_frame->crtRow * m_game_grid_frame->columnCnt +
m_game_grid_frame->crtColumn;
snd0path = QString::fromStdString(m_game_info->m_games[itemID].snd0_path);
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
}

View file

@ -136,7 +136,6 @@ SettingsDialog::SettingsDialog(std::span<const QString> physical_devices, QWidge
});
connect(ui->playBGMCheckBox, &QCheckBox::stateChanged, this,
[](int val) { Config::setPlayBGM(val); });
}
// GPU TAB