1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 04:07:46 +00:00

When the news option is changed, replace the main page to work around Qt

This commit is contained in:
Joshua Goins 2023-07-31 19:02:59 -04:00
parent 5c0506ce44
commit e9365e9dc7

View file

@ -84,6 +84,12 @@ Kirigami.ApplicationWindow {
function onGameClosed() { function onGameClosed() {
Qt.callLater(Qt.quit) 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() Component.onCompleted: checkSetup()