mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
support Chromium/Chrome audio channels
--upstream patch from Plasma taskmanagers
This commit is contained in:
parent
df52930284
commit
ff0b29482c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user