mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 09:17:00 +00:00
Fix console window sticking open derp
This commit is contained in:
parent
3e8e0dd639
commit
35ec599730
@ -165,6 +165,8 @@ void ConsoleWindow::onEnded(BaseInstance *instance, int code, QProcess::ExitStat
|
|||||||
{
|
{
|
||||||
ui->btnKillMinecraft->setEnabled(false);
|
ui->btnKillMinecraft->setEnabled(false);
|
||||||
|
|
||||||
|
setMayClose(true);
|
||||||
|
|
||||||
if (instance->settings().get("AutoCloseConsole").toBool())
|
if (instance->settings().get("AutoCloseConsole").toBool())
|
||||||
{
|
{
|
||||||
if (code == 0 && status != QProcess::CrashExit)
|
if (code == 0 && status != QProcess::CrashExit)
|
||||||
@ -175,15 +177,16 @@ void ConsoleWindow::onEnded(BaseInstance *instance, int code, QProcess::ExitStat
|
|||||||
}
|
}
|
||||||
if(!isVisible())
|
if(!isVisible())
|
||||||
show();
|
show();
|
||||||
setMayClose(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConsoleWindow::onLaunchFailed(BaseInstance *instance)
|
void ConsoleWindow::onLaunchFailed(BaseInstance *instance)
|
||||||
{
|
{
|
||||||
ui->btnKillMinecraft->setEnabled(false);
|
ui->btnKillMinecraft->setEnabled(false);
|
||||||
|
|
||||||
|
setMayClose(true);
|
||||||
|
|
||||||
if(!isVisible())
|
if(!isVisible())
|
||||||
show();
|
show();
|
||||||
setMayClose(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConsoleWindow::on_btnPaste_clicked()
|
void ConsoleWindow::on_btnPaste_clicked()
|
||||||
|
Loading…
Reference in New Issue
Block a user