mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
b2526ab7f6
commit
51e80170e2
1 changed files with 5 additions and 2 deletions
|
@ -340,11 +340,14 @@ bool Domain::removePasscodeIfEmpty() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Local::reset();
|
Local::reset();
|
||||||
|
|
||||||
|
// We completely logged out, remove the passcode if it was there.
|
||||||
|
if (Core::App().passcodeLocked()) {
|
||||||
|
Core::App().unlockPasscode();
|
||||||
|
}
|
||||||
if (!_local->hasLocalPasscode()) {
|
if (!_local->hasLocalPasscode()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// We completely logged out, remove the passcode if it was there.
|
|
||||||
Core::App().unlockPasscode();
|
|
||||||
_local->setPasscode(QByteArray());
|
_local->setPasscode(QByteArray());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue