Lazy load room drawer by putting it in a Loader
This commit is contained in:
@@ -26,8 +26,11 @@ Kirigami.OverlayDrawer {
|
||||
leftPadding: 0
|
||||
rightPadding: 0
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||
contentItem: ColumnLayout {
|
||||
contentItem: Loader {
|
||||
active: roomDrawer.drawerOpen
|
||||
sourceComponent: ColumnLayout {
|
||||
id: columnLayout
|
||||
anchors.fill: parent
|
||||
spacing: 0
|
||||
Kirigami.AbstractApplicationHeader {
|
||||
Layout.fillWidth: true
|
||||
@@ -242,6 +245,7 @@ Kirigami.OverlayDrawer {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onRoomChanged: {
|
||||
if (room == null) {
|
||||
|
||||
Reference in New Issue
Block a user