From 3ef4806e36a015de592ad2501a7be3583e7beb7f Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 5 May 2025 17:59:56 -0400 Subject: [PATCH] Don't allow going back during initial setup I forgot to remove this when copying the logic from somewhere else. It was possible to hit the back button during the initial setup which ends up making the window completely empty. --- launcher/ui/Main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/ui/Main.qml b/launcher/ui/Main.qml index edf721e..928366e 100644 --- a/launcher/ui/Main.qml +++ b/launcher/ui/Main.qml @@ -67,13 +67,13 @@ Kirigami.ApplicationWindow { }); } 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"), { + pageStack.push(Qt.createComponent("zone.xiv.astra", "AddSquareEnix"), { profile: LauncherCore.currentProfile }); } } else { if (LauncherCore.autoLoginProfile && !checkedAutoLogin) { - pageStack.layers.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage")) + pageStack.push(Qt.createComponent("zone.xiv.astra", "AutoLoginPage")) checkedAutoLogin = true; } else { pageStack.push(Qt.createComponent("zone.xiv.astra", "MainPage"))