mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-10 19:58:35 -05:00
Linux: Fix warning message about --allow-screencapture (#9638)
* Fixes #9420
This commit is contained in:
parent
a81771207f
commit
4c1105f968
@ -7850,10 +7850,6 @@ Kernel: %3 %4</source>
|
|||||||
<source>read password of the database from stdin</source>
|
<source>read password of the database from stdin</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>allow app screen recordering and screenshots</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
<message>
|
||||||
<source>Locked databases.</source>
|
<source>Locked databases.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
@ -7973,6 +7969,10 @@ This options is deprecated, use --set-key-file instead.</source>
|
|||||||
<source>KeePassXC is not running. No open database to lock</source>
|
<source>KeePassXC is not running. No open database to lock</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>allow screenshots and app recording (Windows/macOS)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QtIOCompressor</name>
|
<name>QtIOCompressor</name>
|
||||||
|
@ -78,7 +78,7 @@ int main(int argc, char** argv)
|
|||||||
QCommandLineOption keyfileOption("keyfile", QObject::tr("key file of the database"), "keyfile");
|
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 pwstdinOption("pw-stdin", QObject::tr("read password of the database from stdin"));
|
||||||
QCommandLineOption allowScreenCaptureOption("allow-screencapture",
|
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 helpOption = parser.addHelpOption();
|
||||||
QCommandLineOption versionOption = parser.addVersionOption();
|
QCommandLineOption versionOption = parser.addVersionOption();
|
||||||
@ -89,10 +89,7 @@ int main(int argc, char** argv)
|
|||||||
parser.addOption(keyfileOption);
|
parser.addOption(keyfileOption);
|
||||||
parser.addOption(pwstdinOption);
|
parser.addOption(pwstdinOption);
|
||||||
parser.addOption(debugInfoOption);
|
parser.addOption(debugInfoOption);
|
||||||
|
|
||||||
if (osUtils->canPreventScreenCapture()) {
|
|
||||||
parser.addOption(allowScreenCaptureOption);
|
parser.addOption(allowScreenCaptureOption);
|
||||||
}
|
|
||||||
|
|
||||||
parser.process(app);
|
parser.process(app);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user