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

Method javaWasOk

launcher/JavaCommon.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void JavaCommon::javaWasOk(QWidget *parent, JavaCheckResult result)
35{
36 QString text;
37 text += QObject::tr("Java test succeeded!<br />Platform reported: %1<br />Java version "
38 "reported: %2<br />Java vendor "
39 "reported: %3<br />").arg(result.realPlatform, result.javaVersion.toString(), result.javaVendor);
40 if (result.errorLog.size())
41 {
42 auto htmlError = result.errorLog;
43 htmlError.replace('\n', "<br />");
44 text += QObject::tr("<br />Warnings:<br /><font color=\"orange\">%1</font>").arg(htmlError);
45 }
46 CustomMessageBox::selectable(parent, QObject::tr("Java test success"), text, QMessageBox::Information)->show();
47}
48
49void JavaCommon::javaArgsWereBad(QWidget *parent, JavaCheckResult result)
50{

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