From dde0b73ca5db8e24b251fac228d997b28ad35858 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 26 Apr 2026 15:09:57 +0200 Subject: [PATCH] tray: add diagnostic logging to identify broken visible binding --- shell/modules/TrayModule.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } }