mirror of
https://github.com/KDE/kasts.git
synced 2025-02-06 04:13:51 +01:00
Fix saving last playing item when application is shutdown
This commit is contained in:
parent
593934bc4f
commit
f626cee7af
@ -136,6 +136,8 @@ void AudioManager::setEntry(Entry* entry)
|
||||
d->lockPositionSaving = true;
|
||||
d->m_entry = entry;
|
||||
d->m_player.setMedia(QUrl(QStringLiteral("file://")+d->m_entry->enclosure()->path()));
|
||||
// save the current playing track in the settingsfile for restoring on startup
|
||||
SettingsManager::self()->setLastPlayingEntry(d->m_entry->id());
|
||||
qDebug() << "Changed source to" << d->m_entry->title();
|
||||
|
||||
qint64 startingPosition = d->m_entry->enclosure()->playPosition();
|
||||
|
Loading…
x
Reference in New Issue
Block a user