mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix empty stories list hiding.
This commit is contained in:
parent
06469270d0
commit
dfd1aa5cd6
1 changed files with 6 additions and 1 deletions
|
@ -852,6 +852,10 @@ void Widget::setupStories() {
|
||||||
0);
|
0);
|
||||||
}
|
}
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
|
||||||
|
_stories->emptyValue() | rpl::skip(1) | rpl::start_with_next([=] {
|
||||||
|
updateStoriesVisibility();
|
||||||
|
}, lifetime());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::storiesToggleExplicitExpand(bool expand) {
|
void Widget::storiesToggleExplicitExpand(bool expand) {
|
||||||
|
@ -1363,7 +1367,8 @@ void Widget::updateStoriesVisibility() {
|
||||||
|| !_widthAnimationCache.isNull()
|
|| !_widthAnimationCache.isNull()
|
||||||
|| _childList
|
|| _childList
|
||||||
|| !_filter->getLastText().isEmpty()
|
|| !_filter->getLastText().isEmpty()
|
||||||
|| _searchInChat;
|
|| _searchInChat
|
||||||
|
|| _stories->empty();
|
||||||
if (_stories->isHidden() != hidden) {
|
if (_stories->isHidden() != hidden) {
|
||||||
_stories->setVisible(!hidden);
|
_stories->setVisible(!hidden);
|
||||||
using Type = Ui::ElasticScroll::OverscrollType;
|
using Type = Ui::ElasticScroll::OverscrollType;
|
||||||
|
|
Loading…
Add table
Reference in a new issue