From a0a5b907b9ca8a6059affd2444c96debbacd9594 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sat, 25 Apr 2026 09:55:48 +0200 Subject: [PATCH] tray: add debug logging for visibility chain --- shell/modules/TrayModule.qml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/shell/modules/TrayModule.qml b/shell/modules/TrayModule.qml index 66a4c89..647adce 100644 --- a/shell/modules/TrayModule.qml +++ b/shell/modules/TrayModule.qml @@ -15,6 +15,24 @@ RowLayout { required property var bar property var _activeMenu: null + Component.onCompleted: console.log("[TrayModule] created, enable:", S.Modules.tray.enable, "repeater count:", _trayRepeater.count) + + onVisibleChanged: console.log("[TrayModule] visible:", visible, "enable:", S.Modules.tray.enable, "count:", _trayRepeater.count) + + Connections { + target: _trayRepeater + function onCountChanged() { + console.log("[TrayModule] repeater count:", _trayRepeater.count); + } + } + + Connections { + target: SystemTray.items + function onValuesChanged() { + console.log("[TrayModule] model valuesChanged, values.length:", SystemTray.items.values.length, "repeater count:", _trayRepeater.count); + } + } + Repeater { id: _trayRepeater model: SystemTray.items