mpris2: more notifications in CurrentSongChanged
Emit CanGoNext, CanGoPrevious, CanSeek notifications in CurrentSongChanged
This commit is contained in:
parent
c973c446e3
commit
3cf6cdb925
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user