2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Close PiP when a passcode lock is enabled.

This commit is contained in:
John Preston
2023-02-15 10:47:10 +04:00
parent 91e6c42fcf
commit 7557a20679
3 changed files with 9 additions and 2 deletions

View File

@@ -1118,10 +1118,11 @@ void Application::updateWindowTitles() {
}
void Application::lockByPasscode() {
_passcodeLock = true;
enumerateWindows([&](not_null<Window::Controller*> w) {
_passcodeLock = true;
w->setupPasscodeLock();
});
hideMediaView();
}
void Application::maybeLockByPasscode() {