Fix opening rooms

This commit is contained in:
Tobias Fella
2021-10-10 12:40:39 +02:00
parent 2fc4c6456f
commit 1e78c6caa4

View File

@@ -80,8 +80,8 @@ Kirigami.ApplicationWindow {
target: RoomManager
function onPushRoom(room, event) {
pageStack.push(roomPage);
roomPage.forceActiveFocus();
pageStack.push(root.roomPage);
root.roomPage.forceActiveFocus();
if (event.length > 0) {
roomPage.goToEvent(event);
}
@@ -90,7 +90,7 @@ Kirigami.ApplicationWindow {
function onReplaceRoom(room, event) {
const roomItem = pageStack.get(pageStack.depth - 1);
pageStack.currentIndex = pageStack.depth - 1;
roomPage.forceActiveFocus();
root.roomPage.forceActiveFocus();
if (event.length > 0) {
roomItem.goToEvent(event);
}