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:
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…
Reference in New Issue
Block a user