macOS: restrict --allow-screencapture switch to macOS only since screen protection doesn't work on Linux

In the code we also enable it for TC_WINDOWS but actually we don't use wxWidgets for Windows build.
This commit is contained in:
Mounir IDRASSI 2024-09-17 00:12:28 +02:00
parent e0a46f6b2b
commit 5c485e80b6
No known key found for this signature in database
GPG Key ID: FC1B00364B3FE937

View File

@ -42,7 +42,9 @@ namespace VeraCrypt
parser.SetSwitchChars (L"-");
#if defined(TC_WINDOWS) || defined(TC_MACOSX)
parser.AddSwitch (L"", L"allow-screencapture", _("Allow window to be included in screenshots and screen captures (Windows/MacOS)"));
#endif
parser.AddOption (L"", L"auto-mount", _("Auto mount device-hosted/favorite volumes"));
parser.AddSwitch (L"", L"backup-headers", _("Backup volume headers"));
parser.AddSwitch (L"", L"background-task", _("Start Background Task"));