Fix pagestack after login after logout

This commit is contained in:
Tobias Fella
2021-11-12 16:21:48 +01:00
parent d1dce37ea7
commit 8089e5bdfa
2 changed files with 4 additions and 4 deletions

View File

@@ -28,6 +28,8 @@ Kirigami.ScrollablePage {
title: currentRoom.htmlSafeDisplayName
KeyNavigation.left: pageStack.get(0)
Connections {
target: RoomManager
function onCurrentRoomChanged() {

View File

@@ -31,9 +31,7 @@ Kirigami.ApplicationWindow {
property bool roomListLoaded: false
property RoomPage roomPage: RoomPage {
KeyNavigation.left: pageStack.get(0)
}
property RoomPage roomPage
Connections {
target: root.quitAction
@@ -80,7 +78,7 @@ Kirigami.ApplicationWindow {
target: RoomManager
function onPushRoom(room, event) {
pageStack.push(root.roomPage);
root.roomPage = pageStack.push("qrc:/imports/NeoChat/Page/RoomPage.qml");
root.roomPage.forceActiveFocus();
if (event.length > 0) {
roomPage.goToEvent(event);