1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-05-11 12:37:46 +00:00

Don't allow going back during initial setup

I forgot to remove this when copying the logic from somewhere else. It
was possible to hit the back button during the initial setup which ends
up making the window completely empty.
This commit is contained in:
Joshua Goins 2025-05-05 17:59:56 -04:00
parent 3e4c8f2c87
commit 3ef4806e36

View file

@ -67,13 +67,13 @@ Kirigami.ApplicationWindow {
});
} else {
// They have no pre-existing accounts, and should be shoved into the new account page
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AddSquareEnix"), {
pageStack.push(Qt.createComponent("zone.xiv.astra", "AddSquareEnix"), {
profile: LauncherCore.currentProfile
});
}
} else {
if (LauncherCore.autoLoginProfile && !checkedAutoLogin) {
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage"))
pageStack.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage"))
checkedAutoLogin = true;
} else {
pageStack.push(Qt.createComponent("zone.xiv.astra", "MainPage"))