From 9c75deee8c0fa3c8c33f470b3daa6a4c78663d68 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sat, 19 Dec 2020 23:00:25 +0100 Subject: [PATCH] Fix current page not getting updated after switching a page This was caused by myself not updating the index after updating the content. --- qml/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/main.qml b/qml/main.qml index 1d69c573b..cbc50cab4 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -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, }); }