Fix mpris2's PlayPause method
This commit is contained in:
parent
6cebb8e629
commit
bab78c2b4f
|
@ -414,11 +414,7 @@ void Mpris2::Pause() {
|
|||
}
|
||||
|
||||
void Mpris2::PlayPause() {
|
||||
if(CanPause()) {
|
||||
player_->PlayPause();
|
||||
} else {
|
||||
// TODO: raise an error
|
||||
}
|
||||
player_->PlayPause();
|
||||
}
|
||||
|
||||
void Mpris2::Stop() {
|
||||
|
|
Loading…
Reference in New Issue