mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Move Info::TopBarOverride to Info::TopBar.
This allows to improve animations in shared media items selection.
This commit is contained in:
@@ -267,7 +267,7 @@ void DialogsWidget::showAnimated(Window::SlideDirection direction, const Window:
|
||||
_mainMenuToggle->hide();
|
||||
if (_forwardCancel) _forwardCancel->hide();
|
||||
_filter->hide();
|
||||
_cancelSearch->hide();
|
||||
_cancelSearch->hide(anim::type::instant);
|
||||
_jumpToDate->hide(anim::type::instant);
|
||||
_chooseFromUser->hide(anim::type::instant);
|
||||
_lockUnlock->hide();
|
||||
@@ -827,10 +827,8 @@ void DialogsWidget::onFilterUpdate(bool force) {
|
||||
_inner->onFilterUpdate(filterText, force);
|
||||
if (filterText.isEmpty()) {
|
||||
clearSearchCache();
|
||||
_cancelSearch->hideAnimated();
|
||||
} else {
|
||||
_cancelSearch->showAnimated();
|
||||
}
|
||||
_cancelSearch->toggle(!filterText.isEmpty(), anim::type::normal);
|
||||
updateJumpToDateVisibility();
|
||||
|
||||
if (filterText.size() < MinUsernameLength) {
|
||||
|
Reference in New Issue
Block a user