mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Fixed countdown label for input field of bio.
This commit is contained in:
@@ -483,7 +483,8 @@ void SetupBio(
|
||||
}
|
||||
changed->fire(*current != text);
|
||||
const auto limit = self->isPremium() ? premiumLimit : defaultLimit;
|
||||
const auto countLeft = limit - int(text.size());
|
||||
const auto countLeft = limit
|
||||
- bio->lastTextSizeWithoutSurrogatePairsCount();
|
||||
countdown->setText(QString::number(countLeft));
|
||||
countdown->setTextColorOverride(
|
||||
countLeft < 0 ? st::boxTextFgError->c : std::optional<QColor>());
|
||||
|
Reference in New Issue
Block a user