mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-23 06:50:58 -04:00
Clear quick unlock secrets when database tab is closed
This commit is contained in:
parent
7eb7172635
commit
5c45cf2d76
3 changed files with 10 additions and 1 deletions
|
@ -529,8 +529,16 @@ bool DatabaseOpenWidget::isOnQuickUnlockScreen()
|
|||
return m_ui->centralStack->currentIndex() == 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset installed quick unlock secrets.
|
||||
*
|
||||
* It's safe to call this method even if quick unlock is unavailable.
|
||||
*/
|
||||
void DatabaseOpenWidget::resetQuickUnlock()
|
||||
{
|
||||
if (!isQuickUnlockAvailable()) {
|
||||
return;
|
||||
}
|
||||
#if defined(Q_CC_MSVC)
|
||||
getWindowsHello()->reset(m_filename);
|
||||
#elif defined(Q_OS_MACOS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue