From ef30c776bfe35c6e1cf113c11caeb6085c4b2921 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 3 Jun 2020 12:31:15 +0400 Subject: [PATCH] Fix visual glitch in filter change from archived chat. --- Telegram/SourceFiles/dialogs/dialogs_widget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index a509c0077..87844beed 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -439,6 +439,10 @@ void Widget::updateControlsVisibility(bool fast) { void Widget::changeOpenedFolder(Data::Folder *folder, anim::type animated) { _a_show.stop(); + + if (isHidden()) { + animated = anim::type::instant; + } if (animated == anim::type::normal) { _showDirection = folder ? Window::SlideDirection::FromRight