mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
Do not let the console close while Minecraft is running (prevent return to main window)
This commit is contained in:
parent
ab69c1b9e6
commit
fa2ba01a17
@ -47,6 +47,7 @@ ConsoleWindow::ConsoleWindow(MinecraftProcess *mcproc, QWidget *parent)
|
||||
{
|
||||
show();
|
||||
}
|
||||
setMayClose(false);
|
||||
}
|
||||
|
||||
ConsoleWindow::~ConsoleWindow()
|
||||
@ -174,6 +175,7 @@ void ConsoleWindow::onEnded(BaseInstance *instance, int code, QProcess::ExitStat
|
||||
}
|
||||
if(!isVisible())
|
||||
show();
|
||||
setMayClose(true);
|
||||
}
|
||||
|
||||
void ConsoleWindow::onLaunchFailed(BaseInstance *instance)
|
||||
@ -181,6 +183,7 @@ void ConsoleWindow::onLaunchFailed(BaseInstance *instance)
|
||||
ui->btnKillMinecraft->setEnabled(false);
|
||||
if(!isVisible())
|
||||
show();
|
||||
setMayClose(true);
|
||||
}
|
||||
|
||||
void ConsoleWindow::on_btnPaste_clicked()
|
||||
|
Loading…
Reference in New Issue
Block a user