mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 22:42:34 -04:00
parent
247882eb54
commit
9c0fa376a1
1 changed files with 7 additions and 7 deletions
|
@ -1333,14 +1333,14 @@ void MainWindow::applySettingsChanges()
|
|||
}
|
||||
|
||||
#ifdef WITH_XC_TOUCHID
|
||||
// forget TouchID (in minutes)
|
||||
if (config()->get(Config::Security_ResetTouchId).toBool()) {
|
||||
// Calculate TouchID timeout in milliseconds
|
||||
timeout = config()->get(Config::Security_ResetTouchIdTimeout).toInt() * 60 * 1000;
|
||||
if (timeout <= 0) {
|
||||
timeout = 30 * 60 * 1000;
|
||||
}
|
||||
|
||||
m_touchIDinactivityTimer->setInactivityTimeout(timeout);
|
||||
if (config()->get(Config::Security_ResetTouchIdTimeout).toBool()) {
|
||||
m_touchIDinactivityTimer->activate();
|
||||
} else {
|
||||
m_touchIDinactivityTimer->deactivate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue