2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Removed Ui::hideLayer from places that can be in non-primary windows.

This commit is contained in:
23rd
2022-06-09 06:37:46 +03:00
parent 1169c5e143
commit 43c0197445
10 changed files with 20 additions and 22 deletions

View File

@@ -718,9 +718,9 @@ void Instance::requestPermissionOrFail(Platform::PermissionType type, Fn<void()>
}
Ui::show(Ui::MakeConfirmBox({
.text = tr::lng_no_mic_permission(),
.confirmed = crl::guard(this, [=] {
.confirmed = crl::guard(this, [=](Fn<void()> &&close) {
Platform::OpenSystemSettingsForPermission(type);
Ui::hideLayer();
close();
}),
.confirmText = tr::lng_menu_settings(),
}));