Slightly more sensible layout handling.

This commit is contained in:
Lukas Brübach 2025-02-28 17:32:31 +01:00
parent f52903a94d
commit 6426f3c86c

View file

@ -70,12 +70,6 @@ void ManaCurveWidget::updateDisplay()
}
}
// Ensure layout exists
if (barLayout == nullptr) {
barLayout = new QHBoxLayout(this);
layout->addLayout(barLayout);
}
int totalSum = 0;
for (const auto &entry : manaCurveMap) {
totalSum += entry.second;