Removed animation cache from dialogs widget on instant clear search.

This commit is contained in:
23rd 2024-12-05 03:04:33 +03:00
parent ee6dbdced6
commit 18c1e7ac60

View file

@ -3265,6 +3265,9 @@ bool Widget::applySearchState(SearchState state) {
_openedForum && _searchState.inChat);
}
if (!_searchState.inChat && _searchState.query.isEmpty()) {
if (!_widthAnimationCache.isNull()) {
stopWidthAnimation();
}
setInnerFocus();
} else if (!_subsectionTopBar) {
_search->setFocus();