mirror of https://github.com/KDE/kasts.git
Minor tweak to let MPRIS2 load the correct track info on startup
It's still crashing without a proper track being loaded on startup. Still needs to be resolved.
This commit is contained in:
parent
c7164b3f6b
commit
2aa237342c
|
@ -55,6 +55,9 @@ MediaPlayer2Player::MediaPlayer2Player(AudioManager *audioPlayer, bool showProgr
|
|||
signalPropertiesChange(QStringLiteral("Volume"), Volume());
|
||||
|
||||
m_mediaPlayerPresent = 1;
|
||||
if (m_audioPlayer->entry()) {
|
||||
setCurrentTrack(DataManager::instance().getQueue().indexOf(m_audioPlayer->entry()->id()));
|
||||
}
|
||||
}
|
||||
|
||||
MediaPlayer2Player::~MediaPlayer2Player()
|
||||
|
|
Loading…
Reference in New Issue