Fix connection property initialization

This commit is contained in:
Tobias Fella
2023-08-30 00:00:44 +02:00
parent 0c19052f32
commit 0274d70f71
2 changed files with 4 additions and 2 deletions

View File

@@ -26,8 +26,10 @@ Kirigami.Page {
readonly property int currentWidth: _private.currentWidth + spaceListWidth readonly property int currentWidth: _private.currentWidth + spaceListWidth
readonly property alias spaceListWidth: spaceDrawer.width readonly property alias spaceListWidth: spaceDrawer.width
required property NeoChatConnection connection
readonly property RoomListModel roomListModel: RoomListModel { readonly property RoomListModel roomListModel: RoomListModel {
connection: Controller.activeConnection connection: root.connection
} }
readonly property bool collapsed: Config.collapsed readonly property bool collapsed: Config.collapsed

View File

@@ -240,7 +240,7 @@ Kirigami.ApplicationWindow {
pageStack.replace("qrc:/WelcomePage.qml", {}); pageStack.replace("qrc:/WelcomePage.qml", {});
} else if (!roomListLoaded) { } else if (!roomListLoaded) {
pageStack.replace(roomListComponent, { pageStack.replace(roomListComponent, {
activeConnection: Controller.activeConnection connection: Controller.activeConnection
}); });
roomListLoaded = true; roomListLoaded = true;
roomListPage = pageStack.currentItem roomListPage = pageStack.currentItem