Fix requesting screencast rights on macOS.

This commit is contained in:
John Preston 2021-07-30 20:45:00 +03:00
parent d69a1d3cd9
commit 66bcc20f58

View File

@ -18,11 +18,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace Calls::Group { namespace Calls::Group {
object_ptr<Ui::GenericBox> ScreenSharingPrivacyRequestBox() { object_ptr<Ui::GenericBox> ScreenSharingPrivacyRequestBox() {
#ifndef Q_OS_MAC #ifdef Q_OS_MAC
if (!Platform::IsMac10_15OrGreater()) { if (!Platform::IsMac10_15OrGreater()) {
return { nullptr }; return { nullptr };
} }
const auto requestInputMonitoring = Platform::IsMac10_15OrGreater();
return Box([=](not_null<Ui::GenericBox*> box) { return Box([=](not_null<Ui::GenericBox*> box) {
box->addRow( box->addRow(
object_ptr<Ui::FlatLabel>( object_ptr<Ui::FlatLabel>(
@ -42,7 +41,7 @@ object_ptr<Ui::GenericBox> ScreenSharingPrivacyRequestBox() {
st::boxRowPadding.right(), st::boxRowPadding.right(),
st::boxPadding.bottom())); st::boxPadding.bottom()));
box->addButton(tr::lng_group_call_mac_settings(), [=] { box->addButton(tr::lng_group_call_mac_settings(), [=] {
//Platform::OpenDesktopCapturePrivacySettings(); Platform::OpenDesktopCapturePrivacySettings();
}); });
box->addButton(tr::lng_cancel(), [=] { box->closeBox(); }); box->addButton(tr::lng_cancel(), [=] { box->closeBox(); });
}); });