From eb27763cae5c796ec8e956163060dfc54b6c48c2 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 30 Oct 2020 19:12:41 +0400 Subject: [PATCH] Restore Ui::hideLayer call in ShowInFolder on Linux --- Telegram/SourceFiles/core/file_utilities.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/core/file_utilities.cpp b/Telegram/SourceFiles/core/file_utilities.cpp index 5b3858ee6..edd0681c9 100644 --- a/Telegram/SourceFiles/core/file_utilities.cpp +++ b/Telegram/SourceFiles/core/file_utilities.cpp @@ -7,7 +7,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "core/file_utilities.h" +#include "boxes/abstract_box.h" #include "storage/localstorage.h" +#include "base/platform/base_platform_info.h" #include "base/platform/base_platform_file_utilities.h" #include "platform/platform_file_utilities.h" #include "core/application.h" @@ -155,6 +157,10 @@ void Launch(const QString &filepath) { void ShowInFolder(const QString &filepath) { crl::on_main([=] { Ui::PreventDelayedActivation(); + if (Platform::IsLinux()) { + // Hide mediaview to make other apps visible. + Ui::hideLayer(anim::type::instant); + } base::Platform::ShowInFolder(filepath); }); }