mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 16:59:55 +00:00
Show featured sticker sets when no sets installed.
This commit is contained in:
parent
e57b5a7a47
commit
f11c76d06b
@ -1010,7 +1010,7 @@ void StickersListWidget::processPanelHideFinished() {
|
||||
clearInstalledLocally();
|
||||
|
||||
// Reset to the recent stickers section.
|
||||
if (_section == Section::Featured) {
|
||||
if (_section == Section::Featured && (!_footer || !_footer->hasOnlyFeaturedSets())) {
|
||||
_section = Section::Stickers;
|
||||
validateSelectedIcon(ValidateIconAnimations::None);
|
||||
}
|
||||
@ -1105,6 +1105,9 @@ void StickersListWidget::refreshRecent() {
|
||||
if (_section == Section::Stickers) {
|
||||
refreshRecentStickers();
|
||||
}
|
||||
if (_footer && _footer->hasOnlyFeaturedSets() && _section != Section::Featured) {
|
||||
showStickerSet(Stickers::FeaturedSetId);
|
||||
}
|
||||
}
|
||||
|
||||
void StickersListWidget::refreshRecentStickers(bool performResize) {
|
||||
|
Loading…
Reference in New Issue
Block a user