From 482ecf12ff83d1f70803d80a22125652b2b5c032 Mon Sep 17 00:00:00 2001 From: John Preston <johnprestonmail@gmail.com> Date: Thu, 6 Sep 2018 16:59:47 +0300 Subject: [PATCH] Fix settings show animation. --- Telegram/SourceFiles/window/layer_widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/window/layer_widget.cpp b/Telegram/SourceFiles/window/layer_widget.cpp index 95ae9e7a0..b7b3469c5 100644 --- a/Telegram/SourceFiles/window/layer_widget.cpp +++ b/Telegram/SourceFiles/window/layer_widget.cpp @@ -385,7 +385,7 @@ void LayerStackWidget::hideAll(anim::type animated) { } void LayerStackWidget::hideTopLayer(anim::type animated) { - if (_specialLayer) { + if (_specialLayer || _mainMenu) { hideLayers(animated); } else { hideAll(animated); @@ -393,7 +393,7 @@ void LayerStackWidget::hideTopLayer(anim::type animated) { } bool LayerStackWidget::layerShown() const { - return _specialLayer || currentLayer(); + return _specialLayer || currentLayer() || _mainMenu; } void LayerStackWidget::setCacheImages() {