mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-13 21:07:46 +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:
parent
e1a01ded1c
commit
c38d77d087
1 changed files with 11 additions and 3 deletions
|
@ -60,9 +60,17 @@ Kirigami.ApplicationWindow {
|
||||||
})
|
})
|
||||||
} else if (!LauncherCore.currentProfile.account && !LauncherCore.currentProfile.config.isBenchmark) {
|
} else if (!LauncherCore.currentProfile.account && !LauncherCore.currentProfile.config.isBenchmark) {
|
||||||
// User must select an account for the profile
|
// User must select an account for the profile
|
||||||
pageStack.push(Qt.createComponent("zone.xiv.astra", "AccountSetup"), {
|
if (LauncherCore.accountManager.hasAnyAccounts()) {
|
||||||
profile: LauncherCore.currentProfile
|
// 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 {
|
} else {
|
||||||
if (LauncherCore.autoLoginProfile && !checkedAutoLogin) {
|
if (LauncherCore.autoLoginProfile && !checkedAutoLogin) {
|
||||||
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage"))
|
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue