tray: add debug logging for visibility chain

This commit is contained in:
Damocles 2026-04-25 09:55:48 +02:00
parent 2803bca1c3
commit a0a5b907b9

View file

@ -15,6 +15,24 @@ RowLayout {
required property var bar required property var bar
property var _activeMenu: null 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 { Repeater {
id: _trayRepeater id: _trayRepeater
model: SystemTray.items model: SystemTray.items