Don't load twice the room list when adding another account

Just check if the room list is not yet loaded before loading it

Fix #444
This commit is contained in:
Carl Schwan
2021-10-02 15:14:24 +02:00
parent 6a0b51a78e
commit c105642e4c

View File

@@ -319,7 +319,7 @@ Kirigami.ApplicationWindow {
function onInitiated() {
if (Controller.accountCount === 0) {
pageStack.replace("qrc:/imports/NeoChat/Page/WelcomePage.qml", {});
} else {
} else if (!roomListLoaded) {
pageStack.replace(roomListComponent, {
activeConnection: Controller.activeConnection
});