Fix opening rooms
This commit is contained in:
@@ -80,8 +80,8 @@ Kirigami.ApplicationWindow {
|
|||||||
target: RoomManager
|
target: RoomManager
|
||||||
|
|
||||||
function onPushRoom(room, event) {
|
function onPushRoom(room, event) {
|
||||||
pageStack.push(roomPage);
|
pageStack.push(root.roomPage);
|
||||||
roomPage.forceActiveFocus();
|
root.roomPage.forceActiveFocus();
|
||||||
if (event.length > 0) {
|
if (event.length > 0) {
|
||||||
roomPage.goToEvent(event);
|
roomPage.goToEvent(event);
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ Kirigami.ApplicationWindow {
|
|||||||
function onReplaceRoom(room, event) {
|
function onReplaceRoom(room, event) {
|
||||||
const roomItem = pageStack.get(pageStack.depth - 1);
|
const roomItem = pageStack.get(pageStack.depth - 1);
|
||||||
pageStack.currentIndex = pageStack.depth - 1;
|
pageStack.currentIndex = pageStack.depth - 1;
|
||||||
roomPage.forceActiveFocus();
|
root.roomPage.forceActiveFocus();
|
||||||
if (event.length > 0) {
|
if (event.length > 0) {
|
||||||
roomItem.goToEvent(event);
|
roomItem.goToEvent(event);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user