MPRIS: Fix updating of can go next/previous
This commit is contained in:
committed by
Craig Drummond
parent
554d41783e
commit
003cc3889a
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user