mirror of
https://github.com/KDE/kasts.git
synced 2025-01-29 00:30:03 +01:00
Make sure that canGoNext is accurate when changing anything in queue
This commit is contained in:
parent
ecceb5c0fe
commit
23b6b68500
@ -51,7 +51,10 @@ 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);
|
||||
connect(&DataManager::instance(), &DataManager::queueEntryAdded, this, &AudioManager::canGoNextChanged);
|
||||
connect(&DataManager::instance(), &DataManager::queueEntryRemoved, 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user