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

Method abort

launcher/LaunchController.cpp:368–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368bool LaunchController::abort()
369{
370 if(!m_launcher)
371 {
372 return true;
373 }
374 if(!m_launcher->canAbort())
375 {
376 return false;
377 }
378 auto response = CustomMessageBox::selectable(
379 m_parentWidget, tr("Kill Minecraft?"),
380 tr("This can cause the instance to get corrupted and should only be used if Minecraft "
381 "is frozen for some reason"),
382 QMessageBox::Question, QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes)->exec();
383 if (response == QMessageBox::Yes)
384 {
385 return m_launcher->abort();
386 }
387 return false;
388}

Callers 1

readyForLaunchMethod · 0.45

Calls 3

selectableFunction · 0.85
canAbortMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected