Fix current page not getting updated after switching a page

This was caused by myself not updating the index after updating the
content.
This commit is contained in:
Carl Schwan
2020-12-19 23:00:25 +01:00
parent 3fcb40f9dd
commit 9c75deee8c

View File

@@ -63,7 +63,7 @@ Kirigami.ApplicationWindow {
let item = null;
if (currentRoom != null || invitationOpen) {
roomItem.currentRoom = room;
//item = pageStack.replace(roomPage, { 'currentRoom': room, });
pageStack.currentIndex = pageStack.depth - 1;
} else {
roomItem = pageStack.push(roomPage, { 'currentRoom': room, });
}