fix room page list appearing twice after logout

This commit is contained in:
Carl Schwan
2020-11-22 12:19:58 +01:00
parent 089f327223
commit abdc63cc90

View File

@@ -170,8 +170,10 @@ Kirigami.ApplicationWindow {
} }
onConnectionDropped: { onConnectionDropped: {
if(Controller.accountCount === 0) if (Controller.accountCount === 0) {
pageStack.replace("qrc:/imports/NeoChat/Page/LoginPage.qml") pageStack.clear();
pageStack.replace("qrc:/imports/NeoChat/Page/LoginPage.qml");
}
} }
onGlobalErrorOccured: showPassiveNotification(error + ": " + detail) onGlobalErrorOccured: showPassiveNotification(error + ": " + detail)