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/global/JavaPage.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/global/JavaPage.cpp')
-rw-r--r-- | launcher/ui/pages/global/JavaPage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/JavaPage.cpp b/launcher/ui/pages/global/JavaPage.cpp index 3eb4bd59..f0616db1 100644 --- a/launcher/ui/pages/global/JavaPage.cpp +++ b/launcher/ui/pages/global/JavaPage.cpp @@ -2,6 +2,7 @@ /* * PolyMC - Minecraft Launcher * Copyright (c) 2022 Jamie Mansfield <jmansfield@cadixdev.org> + * Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -95,6 +96,7 @@ void JavaPage::applySettings() // Java Settings s->set("JavaPath", ui->javaPathTextBox->text()); s->set("JvmArgs", ui->jvmArgsTextBox->text()); + s->set("IgnoreJavaCompatibility", ui->skipCompatibilityCheckbox->isChecked()); JavaCommon::checkJVMArgs(s->get("JvmArgs").toString(), this->parentWidget()); } void JavaPage::loadSettings() @@ -118,6 +120,7 @@ void JavaPage::loadSettings() // Java Settings ui->javaPathTextBox->setText(s->get("JavaPath").toString()); ui->jvmArgsTextBox->setText(s->get("JvmArgs").toString()); + ui->skipCompatibilityCheckbox->setChecked(s->get("IgnoreJavaCompatibility").toBool()); } void JavaPage::on_javaDetectBtn_clicked() |