From 39e8ed22a9d73ebedc890c42241a7996d320e609 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 1 Aug 2023 11:41:35 +0300 Subject: [PATCH] Removed display of all layers in media view on open any media. --- .../SourceFiles/media/view/media_view_overlay_widget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 04d814478..2f06caa21 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -3209,6 +3209,12 @@ void OverlayWidget::show(OpenRequest request) { // Count top notch on macOS before counting geometry. _helper->beforeShow(_fullscreen); } + if (_cachedShow) { + _cachedShow->showOrHideBoxOrLayer( + v::null, + Ui::LayerOption::CloseOther, + anim::type::instant); + } if (photo) { if (contextItem && contextPeer) { return;