mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix crash in passcode setup.
This commit is contained in:
@@ -452,10 +452,13 @@ void PasscodeBox::save(bool force) {
|
||||
changeCloudPassword(old, pwd);
|
||||
}
|
||||
} else {
|
||||
const auto weak = make_weak(this);
|
||||
cSetPasscodeBadTries(0);
|
||||
Local::setPasscode(pwd.toUtf8());
|
||||
Auth().checkAutoLock();
|
||||
closeBox();
|
||||
Auth().localPasscodeChanged();
|
||||
if (weak) {
|
||||
closeBox();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user