1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Stop launcher from closing and quitting unless configured to do so

This commit is contained in:
Joshua Goins 2023-08-18 21:36:19 -04:00
parent a5682efa3c
commit 04618a4788

View file

@ -74,15 +74,23 @@ Kirigami.ApplicationWindow {
target: LauncherCore target: LauncherCore
function onLoadingFinished() { function onLoadingFinished() {
checkSetup() checkSetup();
} }
function onSuccessfulLaunch() { function onSuccessfulLaunch() {
hide() if (LauncherCore.closeWhenLaunched) {
hide();
} else {
checkSetup();
}
} }
function onGameClosed() { function onGameClosed() {
Qt.callLater(Qt.quit) if (LauncherCore.closeWhenLaunched) {
Qt.callLater(Qt.quit);
} else {
checkSetup();
}
} }
function onShowNewsChanged() { function onShowNewsChanged() {