TrayMenu: defer opener.children access to prevent init freeze

This commit is contained in:
Ly-sec
2025-11-15 22:23:23 +01:00
parent 131d3a095e
commit f28452a258
2 changed files with 55 additions and 19 deletions
+12 -12
View File
@@ -84,19 +84,19 @@ Variants {
}
}
// // TrayMenuWindow - separate window for tray context menus
// // This must be a top-level PanelWindow.
// Loader {
// active: parent.windowLoaded && parent.shouldBeActive
// asynchronous: false
// TrayMenuWindow - separate window for tray context menus
// This must be a top-level PanelWindow.
Loader {
active: parent.windowLoaded && parent.shouldBeActive
asynchronous: false
// sourceComponent: TrayMenuWindow {
// screen: modelData
// }
sourceComponent: TrayMenuWindow {
screen: modelData
}
// onLoaded: {
// Logger.d("Shell", "TrayMenuWindow created for", modelData?.name)
// }
// }
onLoaded: {
Logger.d("Shell", "TrayMenuWindow created for", modelData?.name)
}
}
}
}