mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Allowed to display of hundreds digit in unread badge of filters.
This commit is contained in:
@@ -174,7 +174,7 @@ QImage ChatsFiltersTabs::cacheUnreadCount(int count, bool muted) const {
|
||||
QImage::Format_ARGB32_Premultiplied);
|
||||
image.setDevicePixelRatio(style::DevicePixelRatio());
|
||||
image.fill(Qt::transparent);
|
||||
const auto string = (count > 99)
|
||||
const auto string = (count > 999)
|
||||
? _unreadMaxString
|
||||
: QString::number(count);
|
||||
{
|
||||
|
@@ -283,7 +283,7 @@ base::unique_qptr<Ui::SideBarButton> FiltersMenu::prepareButton(
|
||||
- (includeMuted ? 0 : muted);
|
||||
const auto string = !count
|
||||
? QString()
|
||||
: (count > 99)
|
||||
: (count > 999)
|
||||
? "99+"
|
||||
: QString::number(count);
|
||||
raw->setBadge(string, includeMuted && (count == muted));
|
||||
|
Reference in New Issue
Block a user