From 66bcc20f58768e2c66e5f6d6f466d37eb44afa97 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 30 Jul 2021 20:45:00 +0300 Subject: [PATCH] Fix requesting screencast rights on macOS. --- Telegram/SourceFiles/calls/group/calls_group_common.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_common.cpp b/Telegram/SourceFiles/calls/group/calls_group_common.cpp index 62d1da46e..487629893 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_common.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_common.cpp @@ -18,11 +18,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL namespace Calls::Group { object_ptr ScreenSharingPrivacyRequestBox() { -#ifndef Q_OS_MAC +#ifdef Q_OS_MAC if (!Platform::IsMac10_15OrGreater()) { return { nullptr }; } - const auto requestInputMonitoring = Platform::IsMac10_15OrGreater(); return Box([=](not_null box) { box->addRow( object_ptr( @@ -42,7 +41,7 @@ object_ptr ScreenSharingPrivacyRequestBox() { st::boxRowPadding.right(), st::boxPadding.bottom())); box->addButton(tr::lng_group_call_mac_settings(), [=] { - //Platform::OpenDesktopCapturePrivacySettings(); + Platform::OpenDesktopCapturePrivacySettings(); }); box->addButton(tr::lng_cancel(), [=] { box->closeBox(); }); });