2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Move autolock checking to Core::Application.

This commit is contained in:
John Preston
2020-06-08 19:56:52 +04:00
parent 4b354b0928
commit 27af83267e
9 changed files with 63 additions and 62 deletions

View File

@@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mainwindow.h"
#include "apiwrap.h"
#include "main/main_session.h"
#include "core/application.h"
#include "storage/localstorage.h"
#include "ui/widgets/buttons.h"
#include "ui/widgets/input_fields.h"
@@ -519,7 +520,7 @@ void PasscodeBox::save(bool force) {
const auto weak = Ui::MakeWeak(this);
cSetPasscodeBadTries(0);
Local::setPasscode(pwd.toUtf8());
_session->localPasscodeChanged();
Core::App().localPasscodeChanged();
if (weak) {
closeBox();
}