support Chromium/Chrome audio channels

--upstream patch from Plasma taskmanagers
pull/11/head
Michail Vourlakos 5 years ago
parent de1604bb71
commit 4971655a2c

@ -873,7 +873,7 @@ Item {
engine: "mpris2"
connectedSources: sources
function sourceNameForLauncherUrl(launcherUrl, pid) {
if (!launcherUrl || launcherUrl == "") {
if (!launcherUrl || launcherUrl === "") {
return "";
}
@ -892,11 +892,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;
}

Loading…
Cancel
Save