Merge pull request #2755 from Trial97/fix_java_typo

fix java 64 bit condition
This commit is contained in:
Alexandru Ionut Tripon 2024-08-26 23:49:35 +03:00 committed by GitHub
commit cf12365358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -468,6 +468,7 @@ void JavaSettingsWidget::checkFinished(const JavaChecker::Result& result)
break; break;
} }
} }
updateThresholds();
m_checker.reset(); m_checker.reset();
if (!queuedCheck.isNull()) { if (!queuedCheck.isNull()) {
checkJavaPath(queuedCheck); checkJavaPath(queuedCheck);
@ -504,7 +505,7 @@ void JavaSettingsWidget::updateThresholds()
} else if (observedMaxMemory < observedMinMemory) { } else if (observedMaxMemory < observedMinMemory) {
iconName = "status-yellow"; iconName = "status-yellow";
m_labelMaxMemIcon->setToolTip(tr("Your maximum memory allocation is smaller than the minimum value")); 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"; iconName = "status-bad";
m_labelMaxMemIcon->setToolTip(tr("You are exceeding the maximum allocation supported by 32-bit installations of Java.")); m_labelMaxMemIcon->setToolTip(tr("You are exceeding the maximum allocation supported by 32-bit installations of Java."));
} else { } else {