Added auto java options to the java wizzard page

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2024-02-18 11:34:54 +02:00
parent 4c76f7afe0
commit 2f489d1aec
3 changed files with 48 additions and 0 deletions

View File

@ -57,6 +57,8 @@ bool JavaWizardPage::validatePage()
{
auto settings = APPLICATION->settings();
auto result = m_java_widget->validate();
settings->set("AutomaticJavaSwitch", m_java_widget->autodetectJava());
settings->set("AutomaticJavaDownload", m_java_widget->autodownloadJava());
switch (result) {
default:
case JavaSettingsWidget::ValidationStatus::Bad: {