diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-04-04 21:01:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 21:01:49 +0200 |
commit | 5fb096d7b9689ec4f6b45e2db608047b5ed92c34 (patch) | |
tree | d086f6dd0114bb5fe133ebe6a5ca9c347ec1d0bf /launcher/ui/pages/instance/InstanceSettingsPage.cpp | |
parent | 115d8b594509501158874205e657987883ebf8f4 (diff) | |
parent | 9180c751d8d6b51e1fc34ce84b2a705954b98d31 (diff) | |
download | PrismLauncher-5fb096d7b9689ec4f6b45e2db608047b5ed92c34.tar.gz PrismLauncher-5fb096d7b9689ec4f6b45e2db608047b5ed92c34.tar.bz2 PrismLauncher-5fb096d7b9689ec4f6b45e2db608047b5ed92c34.zip |
Merge pull request #345 from Scrumplex/handle-incompatible-java
Diffstat (limited to 'launcher/ui/pages/instance/InstanceSettingsPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/InstanceSettingsPage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/ui/pages/instance/InstanceSettingsPage.cpp b/launcher/ui/pages/instance/InstanceSettingsPage.cpp index e68a7124..a5985741 100644 --- a/launcher/ui/pages/instance/InstanceSettingsPage.cpp +++ b/launcher/ui/pages/instance/InstanceSettingsPage.cpp @@ -165,10 +165,12 @@ void InstanceSettingsPage::applySettings() if (javaInstall) { m_settings->set("JavaPath", ui->javaPathTextBox->text()); + m_settings->set("IgnoreJavaCompatibility", ui->skipCompatibilityCheckbox->isChecked()); } else { m_settings->reset("JavaPath"); + m_settings->reset("IgnoreJavaCompatibility"); } // Java arguments @@ -286,6 +288,7 @@ void InstanceSettingsPage::loadSettings() ui->javaSettingsGroupBox->setChecked(overrideLocation); ui->javaPathTextBox->setText(m_settings->get("JavaPath").toString()); + ui->skipCompatibilityCheckbox->setChecked(m_settings->get("IgnoreJavaCompatibility").toBool()); ui->javaArgumentsGroupBox->setChecked(overrideArgs); ui->jvmArgsTextBox->setPlainText(m_settings->get("JvmArgs").toString()); |