Fix pagestack after login after logout
This commit is contained in:
@@ -28,6 +28,8 @@ Kirigami.ScrollablePage {
|
||||
|
||||
title: currentRoom.htmlSafeDisplayName
|
||||
|
||||
KeyNavigation.left: pageStack.get(0)
|
||||
|
||||
Connections {
|
||||
target: RoomManager
|
||||
function onCurrentRoomChanged() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user