Version 4.8.3: Fix statup crash with passcode.

This commit is contained in:
John Preston 2023-06-01 11:43:18 +04:00
parent 1e9087db4a
commit bcf91e2f2c
1 changed files with 3 additions and 1 deletions

View File

@ -1161,7 +1161,9 @@ void Application::lockByPasscode() {
enumerateWindows([&](not_null<Window::Controller*> w) {
w->setupPasscodeLock();
});
_mediaView->close();
if (_mediaView) {
_mediaView->close();
}
}
void Application::maybeLockByPasscode() {