MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / checkFinished

Method checkFinished

launcher/ui/widgets/JavaSettingsWidget.cpp:399–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected