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:
@@ -63,7 +63,7 @@ Kirigami.ApplicationWindow {
|
|||||||
let item = null;
|
let item = null;
|
||||||
if (currentRoom != null || invitationOpen) {
|
if (currentRoom != null || invitationOpen) {
|
||||||
roomItem.currentRoom = room;
|
roomItem.currentRoom = room;
|
||||||
//item = pageStack.replace(roomPage, { 'currentRoom': room, });
|
pageStack.currentIndex = pageStack.depth - 1;
|
||||||
} else {
|
} else {
|
||||||
roomItem = pageStack.push(roomPage, { 'currentRoom': room, });
|
roomItem = pageStack.push(roomPage, { 'currentRoom': room, });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user