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:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user