2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix crash on launch with passcode.

This commit is contained in:
John Preston
2022-06-15 14:49:06 +04:00
parent 014cd19e93
commit aa484ac015
3 changed files with 16 additions and 9 deletions

View File

@@ -251,6 +251,10 @@ void Controller::finishFirstShow() {
checkThemeEditor();
}
Main::Session *Controller::maybeSession() const {
return _account ? _account->maybeSession() : nullptr;
}
bool Controller::locked() const {
if (Core::App().passcodeLocked()) {
return true;