From: Kevin Ottens Date: Mon, 14 Sep 2020 15:36:08 +0000 (+0200) Subject: Delay binding on the menu width X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~169^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f7efe6a902004ebfe4526aa985591006daf71c06;p=nextcloud-desktop.git 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 --- 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