Fixed description in box for boosting.

Regression was introduced in d82c422ea1.
This commit is contained in:
23rd 2023-11-03 15:19:52 +03:00 committed by John Preston
parent 764b0d3dcd
commit 336705a503

View File

@ -63,6 +63,14 @@ void BoostBox(
data.boost,
st::boxRowPadding);
{
const auto &d = data.boost;
if (!d.nextLevelBoosts
|| ((d.thisLevelBoosts == d.boosts) && d.mine)) {
--data.boost.level;
}
}
box->addTopButton(st::boxTitleClose, [=] { box->closeBox(); });
const auto name = data.name;