Fix stopped ambience updating the music label when it shouldn't (#948)

This commit is contained in:
in1tiate 2024-05-08 23:53:00 -05:00 committed by GitHub
parent d680a6afdb
commit f2cf70232e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,7 @@ QString AOMusicPlayer::play(QString p_song, int channel, bool loop,
QString p_song_clear = QUrl(p_song).fileName(); QString p_song_clear = QUrl(p_song).fileName();
p_song_clear = p_song_clear.left(p_song_clear.lastIndexOf('.')); p_song_clear = p_song_clear.left(p_song_clear.lastIndexOf('.'));
if (is_stop) { if (is_stop && channel == 0) { // don't send text on channels besides 0
return QObject::tr("None"); return QObject::tr("None");
} }