Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-08-17 10:16:52 +01:00
parent 6da2e7d3f6
commit ffd8ed550f
No known key found for this signature in database
GPG Key ID: 5E39D70B4C93C38E
4 changed files with 8 additions and 13 deletions

View File

@ -1104,18 +1104,13 @@ bool Application::launch(InstancePtr instance,
MinecraftServerTargetPtr serverToJoin,
MinecraftAccountPtr accountToUse)
{
if(m_updateRunning)
{
if (m_updateRunning) {
qDebug() << "Cannot launch instances while an update is running. Please try again when updates are completed.";
}
else if(instance->canLaunch())
{
} else if (instance->canLaunch()) {
auto& extras = m_instanceExtras[instance->id()];
auto window = extras.window;
if(window)
{
if(!window->saveAll())
{
if (window) {
if (!window->saveAll()) {
return false;
}
}