mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fixed possible incorrect display of low credits balance in top bar.
This commit is contained in:
parent
97c0e3d4a9
commit
b64db54793
@ -182,6 +182,9 @@ rpl::producer<Ui::SlideWrap<Ui::RpWidget>*> TopBarSuggestionValue(
|
|||||||
const QString &peers,
|
const QString &peers,
|
||||||
uint64 needed,
|
uint64 needed,
|
||||||
uint64 whole) {
|
uint64 whole) {
|
||||||
|
if (whole > needed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
content->setRightIcon(RightIcon::Close);
|
content->setRightIcon(RightIcon::Close);
|
||||||
content->setLeftPadding(0);
|
content->setLeftPadding(0);
|
||||||
content->setClickedCallback([=] {
|
content->setClickedCallback([=] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user