mpris2: more notifications in CurrentSongChanged

Emit CanGoNext, CanGoPrevious, CanSeek notifications in CurrentSongChanged
This commit is contained in:
Victor Dodon 2016-03-10 21:14:31 +00:00
parent c973c446e3
commit 3cf6cdb925

View File

@ -332,7 +332,12 @@ QString Mpris2::current_track_id() const {
// We send Metadata change notification as soon as the process of
// changing song starts...
void Mpris2::CurrentSongChanged(const Song& song) { ArtLoaded(song, ""); }
void Mpris2::CurrentSongChanged(const Song& song) {
ArtLoaded(song, "");
EmitNotification("CanGoNext", CanGoNext());
EmitNotification("CanGoPrevious", CanGoPrevious());
EmitNotification("CanSeek", CanSeek());
}
// ... and we add the cover information later, when it's available.
void Mpris2::ArtLoaded(const Song& song, const QString& art_uri) {