From 3cf6cdb9255005ff7475d400d1313e6aa8f637e2 Mon Sep 17 00:00:00 2001 From: Victor Dodon Date: Thu, 10 Mar 2016 21:14:31 +0000 Subject: [PATCH] mpris2: more notifications in CurrentSongChanged Emit CanGoNext, CanGoPrevious, CanSeek notifications in CurrentSongChanged --- src/core/mpris2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/mpris2.cpp b/src/core/mpris2.cpp index 63801b8e0..8cec66bdc 100644 --- a/src/core/mpris2.cpp +++ b/src/core/mpris2.cpp @@ -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) {