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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user