Rely on media viewer code to close itself before ShowInFolder

This commit is contained in:
Ilya Fedin 2024-06-03 17:46:19 +04:00 committed by John Preston
parent 23a13ab54e
commit a6fcc6d51d
1 changed files with 0 additions and 6 deletions

View File

@ -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);
});
}