Tray: fix screen access that does not exists on first load.

This commit is contained in:
ItsLemmy
2025-11-13 14:42:42 -05:00
parent 17ff97f8c5
commit 0ab9aa1c0e
+4 -2
View File
@@ -8,13 +8,15 @@ import qs.Widgets
PopupWindow {
id: root
property ShellScreen screen
property var trayItem: null
property var anchorItem: null
property real anchorX
property real anchorY
property bool isSubMenu: false
property bool isHovered: rootMouseArea.containsMouse
property ShellScreen screen
property string widgetSection: ""
property int widgetIndex: -1
@@ -45,7 +47,7 @@ PopupWindow {
implicitWidth: menuWidth
// Use the content height of the Flickable for implicit height
implicitHeight: Math.min(screen.height * 0.9, flickable.contentHeight + (Style.marginS * 2))
implicitHeight: Math.min(screen?.height * 0.9, flickable.contentHeight + (Style.marginS * 2))
visible: false
color: Color.transparent
anchor.item: anchorItem