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:
parent
a5682efa3c
commit
04618a4788
1 changed files with 11 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue