1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-05-11 20:47:45 +00:00

With no pre-existing accounts, go straight to the "new account" page

There's no point in showing the user the pre-existing account list if
they don't have any!
This commit is contained in:
Joshua Goins 2025-05-05 16:00:42 -04:00
parent e1a01ded1c
commit c38d77d087

View file

@ -60,9 +60,17 @@ Kirigami.ApplicationWindow {
})
} else if (!LauncherCore.currentProfile.account && !LauncherCore.currentProfile.config.isBenchmark) {
// User must select an account for the profile
pageStack.push(Qt.createComponent("zone.xiv.astra", "AccountSetup"), {
profile: LauncherCore.currentProfile
})
if (LauncherCore.accountManager.hasAnyAccounts()) {
// They have another account they could select
pageStack.push(Qt.createComponent("zone.xiv.astra", "AccountSetup"), {
profile: LauncherCore.currentProfile
});
} 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"), {
profile: LauncherCore.currentProfile
});
}
} else {
if (LauncherCore.autoLoginProfile && !checkedAutoLogin) {
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage"))