From 0274d70f71bbe9e87e506121f90443c00942b0fb Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Wed, 30 Aug 2023 00:00:44 +0200 Subject: [PATCH] Fix connection property initialization --- src/qml/Page/RoomList/Page.qml | 4 +++- src/qml/main.qml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qml/Page/RoomList/Page.qml b/src/qml/Page/RoomList/Page.qml index e06aa6f1c..57c92bedf 100644 --- a/src/qml/Page/RoomList/Page.qml +++ b/src/qml/Page/RoomList/Page.qml @@ -26,8 +26,10 @@ Kirigami.Page { readonly property int currentWidth: _private.currentWidth + spaceListWidth readonly property alias spaceListWidth: spaceDrawer.width + required property NeoChatConnection connection + readonly property RoomListModel roomListModel: RoomListModel { - connection: Controller.activeConnection + connection: root.connection } readonly property bool collapsed: Config.collapsed diff --git a/src/qml/main.qml b/src/qml/main.qml index 6ad9aeda7..a32e12180 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -240,7 +240,7 @@ Kirigami.ApplicationWindow { pageStack.replace("qrc:/WelcomePage.qml", {}); } else if (!roomListLoaded) { pageStack.replace(roomListComponent, { - activeConnection: Controller.activeConnection + connection: Controller.activeConnection }); roomListLoaded = true; roomListPage = pageStack.currentItem