aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-08-21 17:46:50 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-08-21 17:46:50 +0300
commit45dad27a6d945e3d6257d76ff0652307ad42788a (patch)
tree396e3484d90966a5cf651439f5defd741a5c61e4
parent1eb75b685280c056e5e9a43685e6356c8fab2e2a (diff)
downloadPrismLauncher-45dad27a6d945e3d6257d76ff0652307ad42788a.tar.gz
PrismLauncher-45dad27a6d945e3d6257d76ff0652307ad42788a.tar.bz2
PrismLauncher-45dad27a6d945e3d6257d76ff0652307ad42788a.zip
fixed check
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
-rw-r--r--launcher/ui/widgets/JavaSettingsWidget.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/launcher/ui/widgets/JavaSettingsWidget.cpp b/launcher/ui/widgets/JavaSettingsWidget.cpp
index ec33d991..4ffa3b16 100644
--- a/launcher/ui/widgets/JavaSettingsWidget.cpp
+++ b/launcher/ui/widgets/JavaSettingsWidget.cpp
@@ -361,8 +361,8 @@ void JavaSettingsWidget::checkJavaPath(const QString& path)
setJavaStatus(JavaStatus::Pending);
m_checker.reset(new JavaChecker());
m_checker->m_path = path;
- m_checker->m_minMem = m_minMemSpinBox->value();
- m_checker->m_maxMem = m_maxMemSpinBox->value();
+ m_checker->m_minMem = minHeapSize();
+ m_checker->m_maxMem = maxHeapSize();
if (m_permGenSpinBox->isVisible()) {
m_checker->m_permGen = m_permGenSpinBox->value();
}
@@ -415,6 +415,9 @@ void JavaSettingsWidget::updateThresholds()
} else if (observedMaxMemory > (m_availableMemory * 0.9)) {
iconName = "status-yellow";
m_labelMaxMemIcon->setToolTip(tr("Your maximum memory allocation approaches your system memory capacity."));
+ } else if (observedMaxMemory < observedMinMemory) {
+ iconName = "status-yellow";
+ m_labelMaxMemIcon->setToolTip(tr("Your maximum memory allocation is smaller that the minimum value"));
} else {
iconName = "status-good";
m_labelMaxMemIcon->setToolTip("");