mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fixed display of credit spending.
This commit is contained in:
parent
0549c8f037
commit
5defb9fb17
2 changed files with 2 additions and 2 deletions
|
@ -769,7 +769,7 @@ void CreditsRow::init() {
|
|||
_rightText.setText(
|
||||
st::semiboldTextStyle,
|
||||
(!_entry.bareId ? QChar('+') : kMinus)
|
||||
+ Lang::FormatCountDecimal(_entry.credits));
|
||||
+ Lang::FormatCountDecimal(std::abs(int64(_entry.credits))));
|
||||
}
|
||||
_paintUserpicCallback = !PeerListRow::special()
|
||||
? PeerListRow::generatePaintUserpicCallback(false)
|
||||
|
|
|
@ -426,7 +426,7 @@ void ReceiptCreditsBox(
|
|||
const auto text = lifetime.make_state<Ui::Text::String>(
|
||||
st::semiboldTextStyle,
|
||||
(!e.bareId ? QChar('+') : kMinus)
|
||||
+ Lang::FormatCountDecimal(e.credits));
|
||||
+ Lang::FormatCountDecimal(std::abs(int64(e.credits))));
|
||||
|
||||
const auto amount = content->add(
|
||||
object_ptr<Ui::FixedHeightWidget>(
|
||||
|
|
Loading…
Add table
Reference in a new issue