aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance/InstanceSettingsPage.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-04-04 21:01:49 +0200
committerGitHub <noreply@github.com>2022-04-04 21:01:49 +0200
commit5fb096d7b9689ec4f6b45e2db608047b5ed92c34 (patch)
treed086f6dd0114bb5fe133ebe6a5ca9c347ec1d0bf /launcher/ui/pages/instance/InstanceSettingsPage.cpp
parent115d8b594509501158874205e657987883ebf8f4 (diff)
parent9180c751d8d6b51e1fc34ce84b2a705954b98d31 (diff)
downloadPrismLauncher-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.cpp3
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());