GH-1642 fix instance launch from console
This commit is contained in:
parent
877d1020db
commit
74b4343c43
6 changed files with 17 additions and 6 deletions
|
@ -22,10 +22,6 @@ int launchInstance(MultiMC &app, InstancePtr inst)
|
|||
launchController.setInstance(inst);
|
||||
launchController.setOnline(true);
|
||||
QMetaObject::invokeMethod(&launchController, "start", Qt::QueuedConnection);
|
||||
app.connect(&launchController, &Task::finished, [&app]()
|
||||
{
|
||||
app.quit();
|
||||
});
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue