tray menu: defer showPanel to onCompleted to fix anchor position race

This commit is contained in:
Damocles 2026-04-29 18:04:08 +02:00
parent d4001f7900
commit 345326c1e3

View file

@ -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