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

Method checkFinished

launcher/ui/widgets/JavaSettingsWidget.cpp:394–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void JavaSettingsWidget::checkFinished(JavaCheckResult result)
395{
396 m_result = result;
397 switch(result.validity)
398 {
399 case JavaCheckResult::Validity::Valid:
400 {
401 setJavaStatus(JavaStatus::Good);
402 break;
403 }
404 case JavaCheckResult::Validity::ReturnedInvalidData:
405 {
406 setJavaStatus(JavaStatus::ReturnedInvalidData);
407 break;
408 }
409 case JavaCheckResult::Validity::Errored:
410 {
411 setJavaStatus(JavaStatus::DoesNotStart);
412 break;
413 }
414 }
415 m_checker.reset();
416 if(!queuedCheck.isNull())
417 {
418 checkJavaPath(queuedCheck);
419 queuedCheck.clear();
420 }
421}
422
423void JavaSettingsWidget::retranslate()
424{

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected