mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-29 10:56:48 -05:00
Lock database when OS is locked (Windows, DBus, macOS implementations) #134
This commit is contained in:
parent
a6bc3e9790
commit
2de5a9d281
15 changed files with 362 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <QSystemTrayIcon>
|
||||
|
||||
#include "core/SignalMultiplexer.h"
|
||||
#include "core/ScreenLockListener.h"
|
||||
#include "gui/DatabaseWidget.h"
|
||||
#include "gui/Application.h"
|
||||
|
||||
|
|
@ -91,6 +92,7 @@ private slots:
|
|||
void lockDatabasesAfterInactivity();
|
||||
void repairDatabase();
|
||||
void hideTabMessage();
|
||||
void handleScreenLock();
|
||||
|
||||
private:
|
||||
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);
|
||||
|
|
@ -112,6 +114,7 @@ private:
|
|||
InactivityTimer* m_inactivityTimer;
|
||||
int m_countDefaultAttributes;
|
||||
QSystemTrayIcon* m_trayIcon;
|
||||
ScreenLockListener* m_screenLockListener;
|
||||
|
||||
Q_DISABLE_COPY(MainWindow)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue