From a6fcc6d51dceb98da3ddbb256dd7a77b85755131 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 3 Jun 2024 17:46:19 +0400 Subject: [PATCH] Rely on media viewer code to close itself before ShowInFolder --- Telegram/SourceFiles/core/file_utilities.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Telegram/SourceFiles/core/file_utilities.cpp b/Telegram/SourceFiles/core/file_utilities.cpp index 1de1e028f9..21d912f63c 100644 --- a/Telegram/SourceFiles/core/file_utilities.cpp +++ b/Telegram/SourceFiles/core/file_utilities.cpp @@ -7,10 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #include "core/file_utilities.h" -#include "boxes/abstract_box.h" #include "storage/localstorage.h" #include "storage/storage_account.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" @@ -159,10 +157,6 @@ void Launch(const QString &filepath) { void ShowInFolder(const QString &filepath) { crl::on_main([=] { Ui::PreventDelayedActivation(); - if (Platform::IsX11()) { - // Hide mediaview to make other apps visible. - Core::App().hideMediaView(); - } base::Platform::ShowInFolder(filepath); }); }