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

Method javaWasOk

launcher/JavaCommon.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void JavaCommon::javaWasOk(QWidget *parent, JavaCheckResult result)
24{
25 QString text;
26 text += QObject::tr("Java test succeeded!<br />Platform reported: %1<br />Java version "
27 "reported: %2<br />Java vendor "
28 "reported: %3<br />").arg(result.realPlatform, result.javaVersion.toString(), result.javaVendor);
29 if (result.errorLog.size())
30 {
31 auto htmlError = result.errorLog;
32 htmlError.replace('\n', "<br />");
33 text += QObject::tr("<br />Warnings:<br /><font color=\"orange\">%1</font>").arg(htmlError);
34 }
35 CustomMessageBox::selectable(parent, QObject::tr("Java test success"), text, QMessageBox::Information)->show();
36}
37
38void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
39{

Callers

nothing calls this directly

Calls 4

selectableFunction · 0.85
toStringMethod · 0.45
sizeMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected