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

Method javaWasOk

launcher/JavaCommon.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void JavaCommon::javaWasOk(QWidget *parent, JavaCheckResult result)
72{
73 QString text;
74 text += QObject::tr("Java test succeeded!<br />Platform reported: %1<br />Java version "
75 "reported: %2<br />Java vendor "
76 "reported: %3<br />").arg(result.realPlatform, result.javaVersion.toString(), result.javaVendor);
77 if (result.errorLog.size())
78 {
79 auto htmlError = result.errorLog;
80 htmlError.replace('\n', "<br />");
81 text += QObject::tr("<br />Warnings:<br /><font color=\"orange\">%1</font>").arg(htmlError);
82 }
83 CustomMessageBox::selectable(parent, QObject::tr("Java test success"), text, QMessageBox::Information)->show();
84}
85
86void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
87{

Callers

nothing calls this directly

Calls 5

selectableFunction · 0.85
showMethod · 0.80
toStringMethod · 0.45
sizeMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected