Fixed possible incorrect display of low credits balance in top bar.

This commit is contained in:
23rd 2025-05-15 09:49:48 +03:00
parent 97c0e3d4a9
commit b64db54793

View file

@ -182,6 +182,9 @@ rpl::producer<Ui::SlideWrap<Ui::RpWidget>*> TopBarSuggestionValue(
const QString &peers,
uint64 needed,
uint64 whole) {
if (whole > needed) {
return;
}
content->setRightIcon(RightIcon::Close);
content->setLeftPadding(0);
content->setClickedCallback([=] {