From 345326c1e3178244c30ee2569b896c2347578a1c Mon Sep 17 00:00:00 2001 From: Damocles Date: Wed, 29 Apr 2026 18:04:08 +0200 Subject: [PATCH] tray menu: defer showPanel to onCompleted to fix anchor position race --- shell/modules/TrayMenu.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/modules/TrayMenu.qml b/shell/modules/TrayMenu.qml index d663661..6f1f390 100644 --- a/shell/modules/TrayMenu.qml +++ b/shell/modules/TrayMenu.qml @@ -6,7 +6,9 @@ import "../services" as S M.HoverPanel { id: menuWindow - showPanel: true + // Deferred: anchorItem must be set before _show() computes position. + // Static `showPanel: true` would race with anchorItem initialization. + Component.onCompleted: showPanel = true required property var handle