From d8743ec0e6d706381cd0cda1e4631c3c2760944a Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 8 Aug 2022 18:18:44 +0300 Subject: [PATCH] Fix opening channel with active livestream in a new window. --- Telegram/SourceFiles/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 30f59c48f..1d12884a9 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -158,6 +158,10 @@ void MainWindow::finishFirstShow() { }, lifetime()); setAttribute(Qt::WA_NoSystemBackground); + + if (!_passcodeLock && _main) { + _main->activate(); + } } void MainWindow::clearWidgetsHook() {