From c105642e4c35a096283186cda1df13dece496fdd Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 2 Oct 2021 15:14:24 +0200 Subject: [PATCH] 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 --- qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/main.qml b/qml/main.qml index 4fbfe430f..ef63d326f 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -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 });