MPRIS: Fix updating of can go next/previous

This commit is contained in:
Craig Drummond
2017-09-08 18:59:11 +01:00
committed by Craig Drummond
parent 554d41783e
commit 003cc3889a

View File

@@ -110,7 +110,7 @@ void Mpris::updateStatus()
if (MPDStatus::self()->volume()!=status.volume) {
map.insert("Volume", Volume());
}
if (MPDStatus::self()->playlistLength()!=status.playlistLength) {
if (MPDStatus::self()->state()!=status.state || MPDStatus::self()->playlistLength()!=status.playlistLength) {
map.insert("CanGoNext", CanGoNext());
map.insert("CanGoPrevious", CanGoPrevious());
}