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

Method on_javaBrowseBtn_clicked

launcher/ui/widgets/JavaSettingsWidget.cpp:257–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void JavaSettingsWidget::on_javaBrowseBtn_clicked()
258{
259 QString filter;
260#if defined Q_OS_WIN32
261 filter = "Java (javaw.exe)";
262#else
263 filter = "Java (java)";
264#endif
265 QString raw_path = QFileDialog::getOpenFileName(this, tr("Find Java executable"), QString(), filter);
266 if(raw_path.isEmpty())
267 {
268 return;
269 }
270 QString cooked_path = FS::NormalizePath(raw_path);
271 m_javaPathTextBox->setText(cooked_path);
272 checkJavaPath(cooked_path);
273}
274
275void JavaSettingsWidget::on_javaStatusBtn_clicked()
276{

Callers

nothing calls this directly

Calls 4

QStringClass · 0.85
NormalizePathFunction · 0.85
isEmptyMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected