Fix mpris2 CanPlay

This commit is contained in:
Jonas Kvinge 2019-04-19 12:38:01 +02:00
parent cf92852bb3
commit dffc46551e
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ bool Mpris2::CanGoPrevious() const {
}
bool Mpris2::CanPlay() const {
return app_->playlist_manager()->active() && app_->playlist_manager()->active()->rowCount() != 0 && !(app_->player()->GetState() == Engine::Playing);
return app_->playlist_manager()->active() && app_->playlist_manager()->active()->rowCount() != 0;
}
// This one's a bit different than MPRIS 1 - we want this to be true even when the song is already paused or stopped.