From f7881d06618c9e9ede31891c7061f9476615c48e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 17 May 2023 15:38:10 +0200 Subject: [PATCH] Fix spacedrawer being visible when there are no spaces We can't (easily) make this declarative, since there are no spaces on startup, causing the loader to be disabled, making the repeater not load anything, which means the loader stays disabled. We should figure out a better solution, since this means that the drawer doesn't open immediately when joining a space, but for now this fix is better then the current bug. --- src/qml/Page/RoomList/SpaceDrawer.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qml/Page/RoomList/SpaceDrawer.qml b/src/qml/Page/RoomList/SpaceDrawer.qml index aba695f68..b094b0730 100644 --- a/src/qml/Page/RoomList/SpaceDrawer.qml +++ b/src/qml/Page/RoomList/SpaceDrawer.qml @@ -76,6 +76,7 @@ QQC2.Control { } } onCountChanged: root.enabled = count > 0 + Component.onCompleted: root.enabled = count > 0 delegate: AvatarTabButton { Layout.fillWidth: true