Linux: Fix warning message about --allow-screencapture (#9638)

* Fixes #9420
This commit is contained in:
Jonathan White 2023-07-19 16:12:25 -04:00
parent a81771207f
commit 4c1105f968
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
2 changed files with 6 additions and 9 deletions

View file

@ -78,7 +78,7 @@ int main(int argc, char** argv)
QCommandLineOption keyfileOption("keyfile", QObject::tr("key file of the database"), "keyfile");
QCommandLineOption pwstdinOption("pw-stdin", QObject::tr("read password of the database from stdin"));
QCommandLineOption allowScreenCaptureOption("allow-screencapture",
QObject::tr("allow app screen recordering and screenshots"));
QObject::tr("allow screenshots and app recording (Windows/macOS)"));
QCommandLineOption helpOption = parser.addHelpOption();
QCommandLineOption versionOption = parser.addVersionOption();
@ -89,10 +89,7 @@ int main(int argc, char** argv)
parser.addOption(keyfileOption);
parser.addOption(pwstdinOption);
parser.addOption(debugInfoOption);
if (osUtils->canPreventScreenCapture()) {
parser.addOption(allowScreenCaptureOption);
}
parser.addOption(allowScreenCaptureOption);
parser.process(app);