Fix connection property initialization
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user