mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
parent
b2526ab7f6
commit
51e80170e2
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue