mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Alpha version 0.10.22: critical bug fixes.
This commit is contained in:
@@ -336,5 +336,18 @@ void paintImportantSwitch(Painter &p, Mode current, int fullWidth, bool selected
|
||||
}
|
||||
}
|
||||
|
||||
void clearUnreadBadgesCache() {
|
||||
if (unreadBadgeStyle) {
|
||||
for (auto &data : unreadBadgeStyle->sizes) {
|
||||
for (auto &left : data.left) {
|
||||
left = QPixmap();
|
||||
}
|
||||
for (auto &right : data.right) {
|
||||
right = QPixmap();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Layout
|
||||
} // namespace Dialogs
|
||||
|
||||
@@ -62,5 +62,7 @@ struct UnreadBadgeStyle {
|
||||
};
|
||||
void paintUnreadCount(Painter &p, const QString &text, int x, int y, const UnreadBadgeStyle &st, int *outUnreadWidth = nullptr);
|
||||
|
||||
void clearUnreadBadgesCache();
|
||||
|
||||
} // namespace Layout
|
||||
} // namespace Dialogs
|
||||
|
||||
Reference in New Issue
Block a user