Always clear passcode lock widget on reset.

Fixes #17016.
This commit is contained in:
John Preston 2021-09-30 19:37:42 +04:00
parent b2526ab7f6
commit 51e80170e2

View file

@ -340,11 +340,14 @@ bool Domain::removePasscodeIfEmpty() {
return false;
}
Local::reset();
// We completely logged out, remove the passcode if it was there.
if (Core::App().passcodeLocked()) {
Core::App().unlockPasscode();
}
if (!_local->hasLocalPasscode()) {
return false;
}
// We completely logged out, remove the passcode if it was there.
Core::App().unlockPasscode();
_local->setPasscode(QByteArray());
return true;
}