mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Show featured sticker sets when no sets installed.
This commit is contained in:
parent
e57b5a7a47
commit
f11c76d06b
1 changed files with 4 additions and 1 deletions
|
@ -1010,7 +1010,7 @@ void StickersListWidget::processPanelHideFinished() {
|
||||||
clearInstalledLocally();
|
clearInstalledLocally();
|
||||||
|
|
||||||
// Reset to the recent stickers section.
|
// Reset to the recent stickers section.
|
||||||
if (_section == Section::Featured) {
|
if (_section == Section::Featured && (!_footer || !_footer->hasOnlyFeaturedSets())) {
|
||||||
_section = Section::Stickers;
|
_section = Section::Stickers;
|
||||||
validateSelectedIcon(ValidateIconAnimations::None);
|
validateSelectedIcon(ValidateIconAnimations::None);
|
||||||
}
|
}
|
||||||
|
@ -1105,6 +1105,9 @@ void StickersListWidget::refreshRecent() {
|
||||||
if (_section == Section::Stickers) {
|
if (_section == Section::Stickers) {
|
||||||
refreshRecentStickers();
|
refreshRecentStickers();
|
||||||
}
|
}
|
||||||
|
if (_footer && _footer->hasOnlyFeaturedSets() && _section != Section::Featured) {
|
||||||
|
showStickerSet(Stickers::FeaturedSetId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void StickersListWidget::refreshRecentStickers(bool performResize) {
|
void StickersListWidget::refreshRecentStickers(bool performResize) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue