From 60762b934cf94448de4ff40f097f942be7d1b662 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 59035a2dd..35c951152 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, }); }