From f38e9763b6b9936c998d853c0ade903beda6a58e Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 25 Mar 2020 13:08:59 +0400 Subject: [PATCH] Close media viewer when showing file in folder. --- Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index df5e243b4..89a0df858 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -1378,6 +1378,7 @@ void OverlayWidget::onShowInFolder() { auto filepath = _doc->filepath(DocumentData::FilePathResolve::Checked); if (!filepath.isEmpty()) { File::ShowInFolder(filepath); + close(); } }