Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@nextcloud.com>2020-09-14 18:36:08 +0300
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>2020-09-15 11:46:10 +0300
commitf7efe6a902004ebfe4526aa985591006daf71c06 (patch)
tree04e14890ae57b4e4a1cc59e66f24858528e334b8 /src/gui/tray/UserLine.qml
parenteb0cedebfaedb1c9ffd686aaac8da0c87e84296a (diff)
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 <kevin.ottens@nextcloud.com>
Diffstat (limited to 'src/gui/tray/UserLine.qml')
-rw-r--r--src/gui/tray/UserLine.qml2
1 files changed, 1 insertions, 1 deletions
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