From 51c9586aee2434470e75954010da6aef359bde7b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 23 Mar 2024 10:38:21 -0400 Subject: [PATCH] Fix a possible crash when creating an account for the first time (cherry picked from commit 3a572052172c2ce253e9adbe2ff47ec9ca29f2d0) --- launcher/ui/Main.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher/ui/Main.qml b/launcher/ui/Main.qml index 9d08f66..787fa05 100644 --- a/launcher/ui/Main.qml +++ b/launcher/ui/Main.qml @@ -48,17 +48,17 @@ Kirigami.ApplicationWindow { if (!LauncherCore.currentProfile.isGameInstalled) { // 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 }) } else if (!LauncherCore.currentProfile.account) { // 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 }) } else { if (LauncherCore.autoLoginProfile && !checkedAutoLogin) { - pageStack.layers.replace(Qt.createComponent("zone.xiv.astra", "AutoLoginPage")) + pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage")) checkedAutoLogin = true; } else { pageStack.layers.replace(Qt.createComponent("zone.xiv.astra", "MainPage"))