mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 12:00:48 +00:00
Fix requesting screencast rights on macOS.
This commit is contained in:
parent
d69a1d3cd9
commit
66bcc20f58
@ -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(); });
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user