mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Restore Ui::hideLayer call in ShowInFolder on Linux
This commit is contained in:
parent
30f07280aa
commit
eb27763cae
1 changed files with 6 additions and 0 deletions
|
@ -7,7 +7,9 @@ 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 "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"
|
||||||
|
@ -155,6 +157,10 @@ 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::IsLinux()) {
|
||||||
|
// Hide mediaview to make other apps visible.
|
||||||
|
Ui::hideLayer(anim::type::instant);
|
||||||
|
}
|
||||||
base::Platform::ShowInFolder(filepath);
|
base::Platform::ShowInFolder(filepath);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue