From f7efe6a902004ebfe4526aa985591006daf71c06 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 14 Sep 2020 17:36:08 +0200 Subject: [PATCH] Delay binding on the menu width Indee the MenuItem might not be linked to its Menu at creation time which will make the binding fail and give a warning. Delay for the menu availability. Signed-off-by: Kevin Ottens --- src/gui/tray/UserLine.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/tray/UserLine.qml b/src/gui/tray/UserLine.qml index a2bedbec3..125819b3e 100644 --- a/src/gui/tray/UserLine.qml +++ b/src/gui/tray/UserLine.qml @@ -43,7 +43,7 @@ MenuItem { background: Item { height: parent.height - width: parent.menu.width + width: userLine.menu ? userLine.menu.width : 0 Rectangle { anchors.fill: parent anchors.margins: 1 -- 2.30.2