Restore Ui::hideLayer call in ShowInFolder on Linux

This commit is contained in:
Ilya Fedin 2020-10-30 19:12:41 +04:00 committed by John Preston
parent 30f07280aa
commit eb27763cae

View File

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