Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit c6343ff4 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Media Controller] Avoid warnings when player quits

parent aab6b5c2
......@@ -56,11 +56,11 @@ Item {
property bool noPlayer: mpris2Source.sources.length <= 1
readonly property bool canControl: !root.noPlayer && mpris2Source.currentData.CanControl
readonly property bool canGoPrevious: canControl && mpris2Source.currentData.CanGoPrevious
readonly property bool canGoNext: canControl && mpris2Source.currentData.CanGoNext
readonly property bool canPlay: canControl && mpris2Source.currentData.CanPlay
readonly property bool canPause: canControl && mpris2Source.currentData.CanPause
readonly property bool canControl: (!root.noPlayer && mpris2Source.currentData.CanControl) || false
readonly property bool canGoPrevious: (canControl && mpris2Source.currentData.CanGoPrevious) || false
readonly property bool canGoNext: (canControl && mpris2Source.currentData.CanGoNext) || false
readonly property bool canPlay: (canControl && mpris2Source.currentData.CanPlay) || false
readonly property bool canPause: (canControl && mpris2Source.currentData.CanPause) || false
Plasmoid.switchWidth: units.gridUnit * 14
Plasmoid.switchHeight: units.gridUnit * 10
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