From 39f8eae65b17f2068f5e361606076765d5f7030c Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Thu, 27 May 2021 18:56:17 +0200 Subject: [PATCH] fix(StatusAppNavBar): don't try to render chat button if it doesn't exist --- ui/StatusQ/src/StatusQ/Layout/StatusAppNavBar.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Layout/StatusAppNavBar.qml b/ui/StatusQ/src/StatusQ/Layout/StatusAppNavBar.qml index 42ea12ecae..eb5ede4c7a 100644 --- a/ui/StatusQ/src/StatusQ/Layout/StatusAppNavBar.qml +++ b/ui/StatusQ/src/StatusQ/Layout/StatusAppNavBar.qml @@ -47,8 +47,9 @@ Rectangle { anchors.top: parent.top anchors.topMargin: 48 anchors.horizontalCenter: parent.horizontalCenter - height: statusAppNavBar.navBarChatButton.height - width: statusAppNavBar.navBarChatButton.width + height: visible ? statusAppNavBar.navBarChatButton.height : 0 + width: visible ? statusAppNavBar.navBarChatButton.width : 0 + visible: !!statusAppNavBar.navBarChatButton } Rectangle {