Fix pagestack after login after logout
This commit is contained in:
@@ -28,6 +28,8 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
title: currentRoom.htmlSafeDisplayName
|
title: currentRoom.htmlSafeDisplayName
|
||||||
|
|
||||||
|
KeyNavigation.left: pageStack.get(0)
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: RoomManager
|
target: RoomManager
|
||||||
function onCurrentRoomChanged() {
|
function onCurrentRoomChanged() {
|
||||||
|
|||||||
@@ -31,9 +31,7 @@ Kirigami.ApplicationWindow {
|
|||||||
|
|
||||||
property bool roomListLoaded: false
|
property bool roomListLoaded: false
|
||||||
|
|
||||||
property RoomPage roomPage: RoomPage {
|
property RoomPage roomPage
|
||||||
KeyNavigation.left: pageStack.get(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.quitAction
|
target: root.quitAction
|
||||||
@@ -80,7 +78,7 @@ Kirigami.ApplicationWindow {
|
|||||||
target: RoomManager
|
target: RoomManager
|
||||||
|
|
||||||
function onPushRoom(room, event) {
|
function onPushRoom(room, event) {
|
||||||
pageStack.push(root.roomPage);
|
root.roomPage = pageStack.push("qrc:/imports/NeoChat/Page/RoomPage.qml");
|
||||||
root.roomPage.forceActiveFocus();
|
root.roomPage.forceActiveFocus();
|
||||||
if (event.length > 0) {
|
if (event.length > 0) {
|
||||||
roomPage.goToEvent(event);
|
roomPage.goToEvent(event);
|
||||||
|
|||||||
Reference in New Issue
Block a user