diff options
Diffstat (limited to 'application/main.cpp')
-rw-r--r-- | application/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/application/main.cpp b/application/main.cpp index c134facb..a8951d33 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -21,7 +21,11 @@ int launchInstance(MultiMC &app, InstancePtr inst) LaunchController launchController; launchController.setInstance(inst); launchController.setOnline(true); - launchController.launch(); + QMetaObject::invokeMethod(&launchController, "start", Qt::QueuedConnection); + app.connect(&launchController, &Task::finished, [&app]() + { + app.quit(); + }); return app.exec(); } |