Commit 57457aee authored by Michael Pyne's avatar Michael Pyne

mpris: Don't toggle playback with "Pause".

We already have a separate playPause action for this, both in the MPRIS2
DBus adaptor, and in PlayerManager.

This also fixes playback resuming when the computer is suspended (Plasma
sends the "Pause" command to each media player regardless of whether
it's playing, and JuK incorrectly treats that as a request to toggle
playback).

BUG:381271
FIXED-IN:18.04
parent 21264845
......@@ -257,13 +257,8 @@ void PlayerManager::play()
void PlayerManager::pause()
{
if(!m_setup)
return;
if(paused()) {
play();
if(!m_setup || paused())
return;
}
action("pause")->setEnabled(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment