support Chromium/Chrome audio channels

--upstream patch from Plasma taskmanagers
pull/16/head
Michail Vourlakos 5 years ago
parent df52930284
commit ff0b29482c

@ -870,7 +870,7 @@ Item {
engine: "mpris2" engine: "mpris2"
connectedSources: sources connectedSources: sources
function sourceNameForLauncherUrl(launcherUrl, pid) { function sourceNameForLauncherUrl(launcherUrl, pid) {
if (!launcherUrl || launcherUrl == "") { if (!launcherUrl || launcherUrl === "") {
return ""; return "";
} }
@ -889,11 +889,11 @@ Item {
} }
var sourceData = data[source]; var sourceData = data[source];
if (!sourceData || sourceData.DesktopEntry !== desktopFileName) { if (!sourceData) {
continue; continue;
} }
if (pid === undefined || sourceData.InstancePid === pid) { if (sourceData.DesktopEntry === desktopFileName || (pid && sourceData.InstancePid === pid)) {
return source; return source;
} }

Loading…
Cancel
Save