2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +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

@@ -34,8 +34,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "webrtc/webrtc_audio_input_tester.h"
#include "webrtc/webrtc_create_adm.h" // Webrtc::Backend.
#include "tgcalls/VideoCaptureInterface.h"
#include "facades.h"
#include "boxes/abstract_box.h" // Ui::hideLayer().
#include "styles/style_layers.h"
namespace Settings {
@@ -343,10 +341,10 @@ void Calls::requestPermissionAndStartTestingMicrophone() {
Platform::PermissionType::Microphone,
startTestingChecked);
} else {
const auto showSystemSettings = [] {
const auto showSystemSettings = [controller = _controller] {
Platform::OpenSystemSettingsForPermission(
Platform::PermissionType::Microphone);
Ui::hideLayer();
controller->hideLayer();
};
_controller->show(Ui::MakeConfirmBox({
.text = tr::lng_no_mic_permission(),