From 3a572052172c2ce253e9adbe2ff47ec9ca29f2d0 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 --- 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 d925710..56ab7d6 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.replace(Qt.createComponent("zone.xiv.astra", "MainPage"))