tray: add debug logging for visibility chain
This commit is contained in:
parent
2803bca1c3
commit
a0a5b907b9
1 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue