Commit 262665ac authored by Nate Graham's avatar Nate Graham
Browse files

applets/taskmanager: Always set mprisSourceName to parentPid

Conditionally setting mprisSourceName to either AppPid or pidParent
made no sense, because:
1. AppPid was not defined in this file so it didn't work
2. parentPid was set to the value of AppPid anyway, rendering the two
   branches of the conditional identical even if it did work

Just set it to pidParent directly. This fixes a console error.


(cherry picked from commit d22927e6)
parent 753f82d7
......@@ -48,7 +48,7 @@ PlasmaComponents3.ScrollView {
readonly property bool isVerticalPanel: plasmoid.formFactor === PlasmaCore.Types.Vertical
readonly property string mprisSourceName: mpris2Source.sourceNameForLauncherUrl(launcherUrl, isGroup ? AppPid : pidParent)
readonly property string mprisSourceName: mpris2Source.sourceNameForLauncherUrl(launcherUrl, pidParent)
readonly property var playerData: mprisSourceName != "" ? mpris2Source.data[mprisSourceName] : 0
readonly property bool hasPlayer: !!mprisSourceName && !!playerData
......
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