Removed JavaExtraSearchPaths
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
a288779790
commit
889f604a41
8 changed files with 0 additions and 133 deletions
|
@ -110,7 +110,6 @@ void JavaPage::applySettings()
|
|||
s->set("IgnoreJavaWizard", ui->skipJavaWizardCheckbox->isChecked());
|
||||
s->set("AutomaticJavaSwitch", ui->autodetectJavaCheckBox->isChecked());
|
||||
s->set("AutomaticJavaDownload", ui->autodownloadCheckBox->isChecked());
|
||||
s->set("JavaExtraSearchPaths", m_extra_paths->stringList());
|
||||
JavaCommon::checkJVMArgs(s->get("JvmArgs").toString(), this->parentWidget());
|
||||
}
|
||||
void JavaPage::loadSettings()
|
||||
|
@ -135,8 +134,6 @@ void JavaPage::loadSettings()
|
|||
ui->skipJavaWizardCheckbox->setChecked(s->get("IgnoreJavaWizard").toBool());
|
||||
ui->autodetectJavaCheckBox->setChecked(s->get("AutomaticJavaSwitch").toBool());
|
||||
ui->autodownloadCheckBox->setChecked(s->get("AutomaticJavaSwitch").toBool() && s->get("AutomaticJavaDownload").toBool());
|
||||
m_extra_paths = new QStringListModel(s->get("JavaExtraSearchPaths").toStringList(), this);
|
||||
ui->extraJavaPathsList->setModel(m_extra_paths);
|
||||
}
|
||||
|
||||
void JavaPage::on_javaDetectBtn_clicked()
|
||||
|
@ -247,30 +244,6 @@ void JavaPage::updateThresholds()
|
|||
}
|
||||
}
|
||||
|
||||
void JavaPage::on_addExtraPathButton_clicked()
|
||||
{
|
||||
QString raw_dir = QFileDialog::getExistingDirectory(this, tr("Add Extra Java Folder"));
|
||||
|
||||
if (!raw_dir.isEmpty() && QDir(raw_dir).exists()) {
|
||||
QString cooked_dir = FS::NormalizePath(raw_dir);
|
||||
auto currentList = m_extra_paths->stringList();
|
||||
if (!currentList.contains(cooked_dir)) {
|
||||
currentList << cooked_dir;
|
||||
m_extra_paths->setStringList(currentList);
|
||||
}
|
||||
}
|
||||
APPLICATION->settings()->set("JavaExtraSearchPaths", m_extra_paths->stringList());
|
||||
}
|
||||
|
||||
void JavaPage::on_removeExtraPathButton_clicked()
|
||||
{
|
||||
auto indexes = ui->extraJavaPathsList->selectionModel()->selectedIndexes();
|
||||
if (indexes.size()) {
|
||||
m_extra_paths->removeRow(indexes.first().row());
|
||||
}
|
||||
APPLICATION->settings()->set("JavaExtraSearchPaths", m_extra_paths->stringList());
|
||||
}
|
||||
|
||||
void JavaPage::on_downloadJavaButton_clicked()
|
||||
{
|
||||
on_javaDownloadBtn_clicked();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue