Make sure that canGoNext status is still accurate when queue items have been moved around

This commit is contained in:
Bart De Vries 2021-04-15 22:51:40 +02:00
parent 401f12c02d
commit 2e118d9a7e
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ AudioManager::AudioManager(QObject *parent) : QObject(parent), d(std::make_uniqu
connect(&d->m_player, &QMediaPlayer::durationChanged, this, &AudioManager::durationChanged);
connect(&d->m_player, &QMediaPlayer::positionChanged, this, &AudioManager::positionChanged);
connect(&d->m_player, &QMediaPlayer::positionChanged, this, &AudioManager::savePlayPosition);
connect(&DataManager::instance(), &DataManager::queueEntryMoved, this, &AudioManager::canGoNextChanged);
// we'll send custom seekableChanged signal to work around QMediaPlayer glitches
// Check if an entry was playing when the program was shut down and restore it