2
0
mirror of synced 2025-01-10 22:36:09 +00:00

fix(StatusAppNavBar): don't try to render chat button if it doesn't exist

This commit is contained in:
Pascal Precht 2021-05-27 18:56:17 +02:00 committed by Pascal Precht
parent 98b019463d
commit d690a0c505

View File

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