tray: add diagnostic logging to identify broken visible binding
This commit is contained in:
parent
200a844062
commit
dde0b73ca5
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue