mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fixed possible incorrect display of low credits balance in top bar.
This commit is contained in:
parent
97c0e3d4a9
commit
b64db54793
1 changed files with 3 additions and 0 deletions
|
@ -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([=] {
|
||||
|
|
Loading…
Add table
Reference in a new issue