From e9365e9dc708db2aa4498a5ae60d6e7dfa632d6b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 31 Jul 2023 19:02:59 -0400 Subject: [PATCH] When the news option is changed, replace the main page to work around Qt --- launcher/ui/main.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/launcher/ui/main.qml b/launcher/ui/main.qml index 3974842..dd91efd 100644 --- a/launcher/ui/main.qml +++ b/launcher/ui/main.qml @@ -84,6 +84,12 @@ Kirigami.ApplicationWindow { function onGameClosed() { Qt.callLater(Qt.quit) } + + function onShowNewsChanged() { + // workaround annoying Qt layouting bug + // TODO: see if this changed in Qt6 + pageStack.layers.replace('qrc:/ui/Pages/MainPage.qml') + } } Component.onCompleted: checkSetup()