diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-27 15:53:35 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-27 15:53:35 +0300 |
commit | c5aac24a93df4961bbd70260ab9812f1fd836779 (patch) | |
tree | 0e0015c7db5e1b74814d4e5f33ac4abc0ad3a672 /launcher/ui/pages/global/JavaPage.cpp | |
parent | 288d0d1fd4562e4020c964955918a5681b547705 (diff) | |
parent | df14f88307b1b7f7fa305472bd2800896103f879 (diff) | |
download | PrismLauncher-c5aac24a93df4961bbd70260ab9812f1fd836779.tar.gz PrismLauncher-c5aac24a93df4961bbd70260ab9812f1fd836779.tar.bz2 PrismLauncher-c5aac24a93df4961bbd70260ab9812f1fd836779.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into curse_multiple_loaders2
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/pages/global/JavaPage.cpp')
-rw-r--r-- | launcher/ui/pages/global/JavaPage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/JavaPage.cpp b/launcher/ui/pages/global/JavaPage.cpp index 45d8f018..ac50319e 100644 --- a/launcher/ui/pages/global/JavaPage.cpp +++ b/launcher/ui/pages/global/JavaPage.cpp @@ -185,6 +185,7 @@ void JavaPage::updateThresholds() { auto sysMiB = Sys::getSystemRam() / Sys::mebibyte; unsigned int maxMem = ui->maxMemSpinBox->value(); + unsigned int minMem = ui->minMemSpinBox->value(); QString iconName; @@ -194,6 +195,9 @@ void JavaPage::updateThresholds() } else if (maxMem > (sysMiB * 0.9)) { iconName = "status-yellow"; ui->labelMaxMemIcon->setToolTip(tr("Your maximum memory allocation approaches your system memory capacity.")); + } else if (maxMem < minMem) { + iconName = "status-yellow"; + ui->labelMaxMemIcon->setToolTip(tr("Your maximum memory allocation is smaller than the minimum value")); } else { iconName = "status-good"; ui->labelMaxMemIcon->setToolTip(""); |