Correctly show max memory notice for max < min
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
a8ea072d36
commit
491b5e1473
2 changed files with 25 additions and 0 deletions
|
@ -157,6 +157,18 @@
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QFontComboBox" name="consoleFont"/>
|
<widget class="QFontComboBox" name="consoleFont"/>
|
||||||
</item>
|
</item>
|
||||||
|
@ -208,6 +220,18 @@
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<property name="leftMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item row="2" column="2">
|
<item row="2" column="2">
|
||||||
<spacer name="horizontalSpacer_4">
|
<spacer name="horizontalSpacer_4">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|
|
@ -299,6 +299,7 @@ void JavaSettingsWidget::updateThresholds()
|
||||||
m_ui->labelMaxMemNotice->show();
|
m_ui->labelMaxMemNotice->show();
|
||||||
} else if (maxMem < minMem) {
|
} else if (maxMem < minMem) {
|
||||||
m_ui->labelMaxMemNotice->setText(warningColour.arg(tr("Your maximum memory allocation is below the minimum memory allocation.")));
|
m_ui->labelMaxMemNotice->setText(warningColour.arg(tr("Your maximum memory allocation is below the minimum memory allocation.")));
|
||||||
|
m_ui->labelMaxMemNotice->show();
|
||||||
} else {
|
} else {
|
||||||
m_ui->labelMaxMemNotice->hide();
|
m_ui->labelMaxMemNotice->hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue