Add PlaceholderMessage when room list is empty

This commit is contained in:
Carl Schwan
2020-11-15 21:31:06 +00:00
parent 36f33c3f9b
commit bd853800a6
3 changed files with 16 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ Kirigami.ApplicationWindow {
RoomListPage {
id: roomList
roomListModel: spectralRoomListModel
activeConnection: Controller.activeConnection
}
}
@@ -79,7 +80,7 @@ Kirigami.ApplicationWindow {
if (Controller.accountCount === 0) {
pageStack.replace("qrc:/imports/NeoChat/Page/LoginPage.qml", {});
} else {
pageStack.replace(roomListComponent);
pageStack.replace(roomListComponent, {'activeConnection': Controller.activeConnection});
}
}