| 366 | } |
| 367 | |
| 368 | bool 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 | } |
no test coverage detected