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:
parent
5c0506ce44
commit
e9365e9dc7
1 changed files with 6 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue