mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 11:47:46 +00:00
Fix a possible crash when creating an account for the first time
This commit is contained in:
parent
e5e76b1ceb
commit
3a57205217
1 changed files with 3 additions and 3 deletions
|
@ -48,17 +48,17 @@ Kirigami.ApplicationWindow {
|
||||||
|
|
||||||
if (!LauncherCore.currentProfile.isGameInstalled) {
|
if (!LauncherCore.currentProfile.isGameInstalled) {
|
||||||
// User must set up the profile
|
// User must set up the profile
|
||||||
pageStack.layers.replace(Qt.createComponent("zone.xiv.astra", "SetupPage"), {
|
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "SetupPage"), {
|
||||||
profile: LauncherCore.currentProfile
|
profile: LauncherCore.currentProfile
|
||||||
})
|
})
|
||||||
} else if (!LauncherCore.currentProfile.account) {
|
} else if (!LauncherCore.currentProfile.account) {
|
||||||
// User must select an account for the profile
|
// User must select an account for the profile
|
||||||
pageStack.layers.replace(Qt.createComponent("zone.xiv.astra", "AccountSetup"), {
|
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AccountSetup"), {
|
||||||
profile: LauncherCore.currentProfile
|
profile: LauncherCore.currentProfile
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (LauncherCore.autoLoginProfile && !checkedAutoLogin) {
|
if (LauncherCore.autoLoginProfile && !checkedAutoLogin) {
|
||||||
pageStack.layers.replace(Qt.createComponent("zone.xiv.astra", "AutoLoginPage"))
|
pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage"))
|
||||||
checkedAutoLogin = true;
|
checkedAutoLogin = true;
|
||||||
} else {
|
} else {
|
||||||
pageStack.replace(Qt.createComponent("zone.xiv.astra", "MainPage"))
|
pageStack.replace(Qt.createComponent("zone.xiv.astra", "MainPage"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue