Rely on media viewer code to close itself before ShowInFolder
This commit is contained in:
parent
23a13ab54e
commit
a6fcc6d51d
1 changed files with 0 additions and 6 deletions
|
@ -7,10 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
*/
|
*/
|
||||||
#include "core/file_utilities.h"
|
#include "core/file_utilities.h"
|
||||||
|
|
||||||
#include "boxes/abstract_box.h"
|
|
||||||
#include "storage/localstorage.h"
|
#include "storage/localstorage.h"
|
||||||
#include "storage/storage_account.h"
|
#include "storage/storage_account.h"
|
||||||
#include "base/platform/base_platform_info.h"
|
|
||||||
#include "base/platform/base_platform_file_utilities.h"
|
#include "base/platform/base_platform_file_utilities.h"
|
||||||
#include "platform/platform_file_utilities.h"
|
#include "platform/platform_file_utilities.h"
|
||||||
#include "core/application.h"
|
#include "core/application.h"
|
||||||
|
@ -159,10 +157,6 @@ void Launch(const QString &filepath) {
|
||||||
void ShowInFolder(const QString &filepath) {
|
void ShowInFolder(const QString &filepath) {
|
||||||
crl::on_main([=] {
|
crl::on_main([=] {
|
||||||
Ui::PreventDelayedActivation();
|
Ui::PreventDelayedActivation();
|
||||||
if (Platform::IsX11()) {
|
|
||||||
// Hide mediaview to make other apps visible.
|
|
||||||
Core::App().hideMediaView();
|
|
||||||
}
|
|
||||||
base::Platform::ShowInFolder(filepath);
|
base::Platform::ShowInFolder(filepath);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue