1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-10 21:18:19 +03:00

support Chromium/Chrome audio channels

--upstream patch from Plasma taskmanagers
This commit is contained in:
Michail Vourlakos 2020-02-29 16:06:50 +02:00
parent de1604bb71
commit 4971655a2c

View File

@ -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;
}