mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 06:22:59 +02:00
Remove .00 from credits amount.
This commit is contained in:
parent
8a0869fb75
commit
09f106bd49
1 changed files with 3 additions and 1 deletions
|
@ -2971,7 +2971,9 @@ object_ptr<Ui::RpWidget> SetupChannelMembersAndManage(
|
|||
? Ui::MakeCreditsIconEntity()
|
||||
.append(QChar(' '))
|
||||
.append(Info::ChannelEarn::MajorPart(credits))
|
||||
.append(Info::ChannelEarn::MinorPart(credits))
|
||||
.append(credits.nano()
|
||||
? Info::ChannelEarn::MinorPart(credits)
|
||||
: QString())
|
||||
: TextWithEntities();
|
||||
auto currencyText = (currency > CreditsAmount(0))
|
||||
? Ui::Text::SingleCustomEmoji("_")
|
||||
|
|
Loading…
Add table
Reference in a new issue