diff --git a/shell/modules/TrayModule.qml b/shell/modules/TrayModule.qml index 5077652..539ced5 100644 --- a/shell/modules/TrayModule.qml +++ b/shell/modules/TrayModule.qml @@ -16,6 +16,10 @@ M.BarModule { required property var bar property var _activeMenu: null + // Shadow binding to test if QML dependency tracking works on a fresh property + property bool _shouldBeVisible: S.Modules.tray.enable && _trayRepeater.count > 0 + on_ShouldBeVisibleChanged: console.log("[TrayModule] _shouldBeVisible:", _shouldBeVisible, "actual visible:", visible) + 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) @@ -23,7 +27,7 @@ M.BarModule { Connections { target: _trayRepeater function onCountChanged() { - console.log("[TrayModule] repeater count:", _trayRepeater.count); + console.log("[TrayModule] repeater count:", _trayRepeater.count, "visible:", root.visible, "shouldBe:", S.Modules.tray.enable && _trayRepeater.count > 0); } }