mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed display of credit spending.
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user