mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Fix IconGraphic::counterSlice for Window::WithSmallCounter
This commit is contained in:
@@ -111,8 +111,8 @@ bool IconGraphic::isCounterNeeded(const State &state) const {
|
||||
}
|
||||
|
||||
int IconGraphic::counterSlice(int counter) const {
|
||||
return (counter >= 1000)
|
||||
? (1000 + (counter % 100))
|
||||
return (counter >= 100)
|
||||
? (100 + (counter % 10))
|
||||
: counter;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user