Skip to content

Commit

Permalink
Linux: Fix warning message about --allow-screencapture (#9638)
Browse files Browse the repository at this point in the history
* Fixes #9420
  • Loading branch information
droidmonkey authored Jul 19, 2023
1 parent b612476 commit 8199bf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions share/translations/keepassxc_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7890,10 +7890,6 @@ Kernel: %3 %4</source>
<source>read password of the database from stdin</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>allow app screen recordering and screenshots</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Locked databases.</source>
<translation type="unfinished"></translation>
Expand Down Expand Up @@ -7956,6 +7952,10 @@ Kernel: %3 %4</source>
<source>Access to all entries is denied</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>allow screenshots and app recording (Windows/macOS)</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>QtIOCompressor</name>
Expand Down
7 changes: 2 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);

Expand Down

0 comments on commit 8199bf0

Please sign in to comment.