MCPcopy Create free account
hub / github.com/MultiMC/Launcher / abort

Method abort

launcher/LaunchController.cpp:401–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

399}
400
401bool LaunchController::abort()
402{
403 if(!m_launcher)
404 {
405 return true;
406 }
407 if(!m_launcher->canAbort())
408 {
409 return false;
410 }
411 auto response = CustomMessageBox::selectable(
412 m_parentWidget, tr("Kill Minecraft?"),
413 tr("This can cause the instance to get corrupted and should only be used if Minecraft "
414 "is frozen for some reason"),
415 QMessageBox::Question, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes)->exec();
416 if (response == QMessageBox::Yes)
417 {
418 return m_launcher->abort();
419 }
420 return false;
421}

Callers 1

readyForLaunchMethod · 0.45

Calls 3

selectableFunction · 0.85
canAbortMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected