From ff0b29482c52204349fad52f94ce2240d6d9fea8 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 29 Feb 2020 16:06:50 +0200 Subject: [PATCH] support Chromium/Chrome audio channels --upstream patch from Plasma taskmanagers --- plasmoid/package/contents/ui/main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index e7ba44496..b430d558e 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -870,7 +870,7 @@ Item { engine: "mpris2" connectedSources: sources function sourceNameForLauncherUrl(launcherUrl, pid) { - if (!launcherUrl || launcherUrl == "") { + if (!launcherUrl || launcherUrl === "") { return ""; } @@ -889,11 +889,11 @@ Item { } var sourceData = data[source]; - if (!sourceData || sourceData.DesktopEntry !== desktopFileName) { + if (!sourceData) { continue; } - if (pid === undefined || sourceData.InstancePid === pid) { + if (sourceData.DesktopEntry === desktopFileName || (pid && sourceData.InstancePid === pid)) { return source; }