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:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user