diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 592d4dbd1..f5192d683 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -702,6 +702,7 @@ bool MainWindow::takeThirdSectionFromLayer() { } void MainWindow::fixOrder() { + if (_passcodeLock) _passcodeLock->raise(); if (_layer) _layer->raise(); if (_mediaPreview) _mediaPreview->raise(); if (_testingThemeWarning) _testingThemeWarning->raise(); diff --git a/Telegram/SourceFiles/window/window_controller.cpp b/Telegram/SourceFiles/window/window_controller.cpp index 9fa618cf5..a89616730 100644 --- a/Telegram/SourceFiles/window/window_controller.cpp +++ b/Telegram/SourceFiles/window/window_controller.cpp @@ -106,6 +106,7 @@ void Controller::showRightColumn(object_ptr widget) { void Controller::sideBarChanged() { _widget.setMinimumWidth(_widget.computeMinWidth()); _widget.updateControlsGeometry(); + _widget.fixOrder(); } void Controller::activate() {