Correctly show max memory notice for max < min

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2025-03-24 16:34:45 +00:00
parent a8ea072d36
commit 491b5e1473
2 changed files with 25 additions and 0 deletions

View File

@@ -299,6 +299,7 @@ void JavaSettingsWidget::updateThresholds()
m_ui->labelMaxMemNotice->show();
} else if (maxMem < minMem) {
m_ui->labelMaxMemNotice->setText(warningColour.arg(tr("Your maximum memory allocation is below the minimum memory allocation.")));
m_ui->labelMaxMemNotice->show();
} else {
m_ui->labelMaxMemNotice->hide();
}