Show featured sticker sets when no sets installed.

This commit is contained in:
John Preston 2017-04-24 18:59:54 +03:00
parent e57b5a7a47
commit f11c76d06b
1 changed files with 4 additions and 1 deletions

View File

@ -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) {