Skip to content

Commit 2e54036

Browse files
committed
Added new cli flag to enable quick unlock even when --pw-stdin is enabled
1 parent 7d17f30 commit 2e54036

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

share/translations/keepassxc_en.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9248,6 +9248,10 @@ This option is deprecated, use --set-key-file instead.</source>
92489248
<source>Tags</source>
92499249
<translation type="unfinished"></translation>
92509250
</message>
9251+
<message>
9252+
<source>enable quick unlock also when --pw-stdin is set</source>
9253+
<translation type="unfinished"></translation>
9254+
</message>
92519255
</context>
92529256
<context>
92539257
<name>QtIOCompressor</name>

src/gui/MainWindow.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ class MainWindow : public QMainWindow
6363
PasswordGeneratorScreen = 3
6464
};
6565

66-
signals:
66+
signals:
6767
void databaseUnlocked(DatabaseWidget* dbWidget);
6868
void databaseLocked(DatabaseWidget* dbWidget);
6969
void activeDatabaseChanged(DatabaseWidget* dbWidget);
7070
void databaseUnlockDialogFinished(bool accepted, DatabaseWidget* dbWidget);
7171

72-
public slots:
73-
void openDatabase(const QString& filePath,
74-
const QString& password = {},
75-
const QString& keyfile = {},
76-
bool explicitQuickUnlock = false);
72+
public slots:
73+
void openDatabase(const QString& filePath,
74+
const QString& password = {},
75+
const QString& keyfile = {},
76+
bool explicitQuickUnlock = false);
7777
void appExit();
7878
bool isHardwareKeySupported();
7979
bool refreshHardwareKeys();

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ int main(int argc, char** argv)
8282
QCommandLineOption lockOption("lock", QObject::tr("lock all open databases"));
8383
QCommandLineOption keyfileOption("keyfile", QObject::tr("key file of the database"), "keyfile");
8484
QCommandLineOption pwstdinOption("pw-stdin", QObject::tr("read password of the database from stdin"));
85-
QCommandLineOption explicitQuickUnlockOption("quick-unlock", QObject::tr("enable quick unlock also when --pw-stdin is set"));
85+
QCommandLineOption explicitQuickUnlockOption("quick-unlock",
86+
QObject::tr("enable quick unlock also when --pw-stdin is set"));
8687
QCommandLineOption allowScreenCaptureOption("allow-screencapture",
8788
QObject::tr("allow screenshots and app recording (Windows/macOS)"));
8889
QCommandLineOption startMinimized("minimized", QObject::tr("start minimized to the system tray"));

0 commit comments

Comments
 (0)