From b1fc95b1d9e361ef5fb2bc475f6622bceb29f9be Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 7 Sep 2025 09:21:35 +0300 Subject: [PATCH] Added decimal separators to credits in charge slider for direct message. --- Telegram/SourceFiles/boxes/edit_privacy_box.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/boxes/edit_privacy_box.cpp b/Telegram/SourceFiles/boxes/edit_privacy_box.cpp index 411f4b1e36..8b004eb6d0 100644 --- a/Telegram/SourceFiles/boxes/edit_privacy_box.cpp +++ b/Telegram/SourceFiles/boxes/edit_privacy_box.cpp @@ -478,15 +478,15 @@ auto PrivacyExceptionsBoxController::createRow(not_null history) const auto labels = raw->add(object_ptr(raw)); const auto min = Ui::CreateChild( raw, - QString::number(minValue), + Lang::FormatCountDecimal(minValue), *labelStyle); const auto max = Ui::CreateChild( raw, - QString::number(maxValue), + Lang::FormatCountDecimal(maxValue), *labelStyle); const auto current = Ui::CreateChild( raw, - QString::number(value), + Lang::FormatCountDecimal(value), *labelStyle); min->setTextColorOverride(st::windowSubTextFg->c); max->setTextColorOverride(st::windowSubTextFg->c); @@ -516,7 +516,7 @@ auto PrivacyExceptionsBoxController::createRow(not_null history) }; const auto updateByValue = [=](int value) { current->setText(value > 0 - ? tr::lng_action_gift_for_stars(tr::now, lt_count, value) + ? tr::lng_action_gift_for_stars(tr::now, lt_count_decimal, value) : tr::lng_manage_monoforum_free(tr::now)); state->index = 0;