mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(
|
_rightText.setText(
|
||||||
st::semiboldTextStyle,
|
st::semiboldTextStyle,
|
||||||
(!_entry.bareId ? QChar('+') : kMinus)
|
(!_entry.bareId ? QChar('+') : kMinus)
|
||||||
+ Lang::FormatCountDecimal(_entry.credits));
|
+ Lang::FormatCountDecimal(std::abs(int64(_entry.credits))));
|
||||||
}
|
}
|
||||||
_paintUserpicCallback = !PeerListRow::special()
|
_paintUserpicCallback = !PeerListRow::special()
|
||||||
? PeerListRow::generatePaintUserpicCallback(false)
|
? PeerListRow::generatePaintUserpicCallback(false)
|
||||||
|
|
|
@ -426,7 +426,7 @@ void ReceiptCreditsBox(
|
||||||
const auto text = lifetime.make_state<Ui::Text::String>(
|
const auto text = lifetime.make_state<Ui::Text::String>(
|
||||||
st::semiboldTextStyle,
|
st::semiboldTextStyle,
|
||||||
(!e.bareId ? QChar('+') : kMinus)
|
(!e.bareId ? QChar('+') : kMinus)
|
||||||
+ Lang::FormatCountDecimal(e.credits));
|
+ Lang::FormatCountDecimal(std::abs(int64(e.credits))));
|
||||||
|
|
||||||
const auto amount = content->add(
|
const auto amount = content->add(
|
||||||
object_ptr<Ui::FixedHeightWidget>(
|
object_ptr<Ui::FixedHeightWidget>(
|
||||||
|
|
Loading…
Add table
Reference in a new issue