Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
742f4c86
Unverified
Commit
742f4c86
authored
Sep 20, 2020
by
Yoann Laissus
Browse files
Use CanStop instead of CanControl for the media stop shortcut
CanStop has additional checks about the playback status
parent
c5f793f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataengines/mpris2/multiplexedservice.cpp
View file @
742f4c86
...
...
@@ -130,7 +130,7 @@ void MultiplexedService::enableGlobalShortcuts()
KGlobalAccel
::
setGlobalShortcut
(
stopAction
,
Qt
::
Key_MediaStop
);
connect
(
stopAction
,
&
QAction
::
triggered
,
this
,
[
this
]
{
if
(
m_control
&&
m_control
->
capabilities
()
&
PlayerContainer
::
Can
Control
)
{
if
(
m_control
&&
m_control
->
capabilities
()
&
PlayerContainer
::
Can
Stop
)
{
m_control
->
playerInterface
()
->
Stop
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment