From d55ebefac38c6fbba77c0cf0dc4c66298dea3a79 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Sun, 25 Aug 2024 21:42:40 +0300 Subject: [PATCH 1/2] fix java 64 bit condition Signed-off-by: Trial97 --- launcher/ui/widgets/JavaSettingsWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/ui/widgets/JavaSettingsWidget.cpp b/launcher/ui/widgets/JavaSettingsWidget.cpp index bf58bf9f7..81bd22ff1 100644 --- a/launcher/ui/widgets/JavaSettingsWidget.cpp +++ b/launcher/ui/widgets/JavaSettingsWidget.cpp @@ -504,7 +504,7 @@ void JavaSettingsWidget::updateThresholds() } else if (observedMaxMemory < observedMinMemory) { iconName = "status-yellow"; m_labelMaxMemIcon->setToolTip(tr("Your maximum memory allocation is smaller than the minimum value")); - } else if (observedMaxMemory > 2048 && m_result.is_64bit) { + } else if (observedMaxMemory > 2048 && !m_result.is_64bit) { iconName = "status-bad"; m_labelMaxMemIcon->setToolTip(tr("You are exceeding the maximum allocation supported by 32-bit installations of Java.")); } else { From 034e2a44ad934cd289a116d311ed860e8d4c4023 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Mon, 26 Aug 2024 17:43:49 +0300 Subject: [PATCH 2/2] update thresholds each time java result changes Signed-off-by: Trial97 --- launcher/ui/widgets/JavaSettingsWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/launcher/ui/widgets/JavaSettingsWidget.cpp b/launcher/ui/widgets/JavaSettingsWidget.cpp index 81bd22ff1..8e2d94556 100644 --- a/launcher/ui/widgets/JavaSettingsWidget.cpp +++ b/launcher/ui/widgets/JavaSettingsWidget.cpp @@ -468,6 +468,7 @@ void JavaSettingsWidget::checkFinished(const JavaChecker::Result& result) break; } } + updateThresholds(); m_checker.reset(); if (!queuedCheck.isNull()) { checkJavaPath(queuedCheck);