This commit is contained in:
Lemmy
2026-01-03 09:11:27 -05:00
parent 40a9c16a33
commit f5bf54d46e
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -27,7 +27,7 @@ SmartPanel {
// All tray items from SystemTray
readonly property var trayValuesAll: (SystemTray.items && SystemTray.items.values) ? SystemTray.items.values : []
// Filtered items - computed in panelContent where isPinned is available
property var trayValues: []
@@ -82,17 +82,17 @@ SmartPanel {
var item = root.trayValuesAll[i];
if (!item)
continue;
// Filter out passive items if hidePassive is enabled
if (hidePassive && item.status !== undefined && (item.status === SystemTray.Passive || item.status === 0)) {
continue;
}
// Filter out pinned items
if (isPinned(item)) {
continue;
}
filtered.push(item);
}
root.trayValues = filtered;
@@ -102,7 +102,7 @@ SmartPanel {
Component.onCompleted: updateFilteredItems()
onPinnedListChanged: updateFilteredItems()
onHidePassiveChanged: updateFilteredItems()
Connections {
target: root
function onTrayValuesAllChanged() {
+3 -3
View File
@@ -397,9 +397,9 @@ Singleton {
"cachedImage": image // Start with original, update when cached
,
"actionsJson": JSON.stringify((n.actions || []).map(a => ({
"text": (a.text || "").trim() || "Action",
"identifier": a.identifier || ""
})))
"text": (a.text || "").trim() || "Action",
"identifier": a.identifier || ""
})))
};
}