mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +01:00
parent
799279afcd
commit
54a79f0665
@ -142,7 +142,7 @@ void Mpris1Root::Quit() {
|
||||
}
|
||||
|
||||
void Mpris1Player::Pause() {
|
||||
player_->Pause();
|
||||
player_->PlayPause();
|
||||
}
|
||||
|
||||
void Mpris1Player::Stop() {
|
||||
|
@ -381,16 +381,7 @@ void Player::Mute() {
|
||||
}
|
||||
|
||||
void Player::Pause() {
|
||||
switch (GetState()) {
|
||||
case Engine::Playing:
|
||||
engine_->Pause();
|
||||
break;
|
||||
case Engine::Paused:
|
||||
engine_->Unpause();
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
engine_->Pause();
|
||||
}
|
||||
|
||||
void Player::Play() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user