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

Method on_javaBrowseBtn_clicked

launcher/ui/widgets/JavaSettingsWidget.cpp:262–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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