Fix canceling quick unlock when it is unavailable (#9034)

This commit is contained in:
Jonathan White 2023-01-29 10:08:16 -05:00
parent 0e1b32adcd
commit acb37db6f1
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01

View file

@ -538,9 +538,6 @@ bool DatabaseOpenWidget::isOnQuickUnlockScreen()
*/ */
void DatabaseOpenWidget::resetQuickUnlock() void DatabaseOpenWidget::resetQuickUnlock()
{ {
if (!isQuickUnlockAvailable()) {
return;
}
#if defined(Q_CC_MSVC) #if defined(Q_CC_MSVC)
getWindowsHello()->reset(m_filename); getWindowsHello()->reset(m_filename);
#elif defined(Q_OS_MACOS) #elif defined(Q_OS_MACOS)