From 04618a47880822b9229ecb39cce7629a5ff885ea Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 18 Aug 2023 21:36:19 -0400 Subject: [PATCH] Stop launcher from closing and quitting unless configured to do so --- launcher/ui/main.qml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/launcher/ui/main.qml b/launcher/ui/main.qml index cd92220..81965f1 100644 --- a/launcher/ui/main.qml +++ b/launcher/ui/main.qml @@ -74,15 +74,23 @@ Kirigami.ApplicationWindow { target: LauncherCore function onLoadingFinished() { - checkSetup() + checkSetup(); } function onSuccessfulLaunch() { - hide() + if (LauncherCore.closeWhenLaunched) { + hide(); + } else { + checkSetup(); + } } function onGameClosed() { - Qt.callLater(Qt.quit) + if (LauncherCore.closeWhenLaunched) { + Qt.callLater(Qt.quit); + } else { + checkSetup(); + } } function onShowNewsChanged() {