From 1e744efef8f95814c666853cb5ccefe653bbecaf Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 23 Mar 2022 03:04:17 +0400 Subject: [PATCH] Replace setMinimumWidth with updateMinimumSize in Window::MainWindow There's no RpWindow::setMinimumWidth --- Telegram/SourceFiles/window/main_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/window/main_window.cpp b/Telegram/SourceFiles/window/main_window.cpp index 650892711..f3af455df 100644 --- a/Telegram/SourceFiles/window/main_window.cpp +++ b/Telegram/SourceFiles/window/main_window.cpp @@ -941,7 +941,7 @@ void MainWindow::showRightColumn(object_ptr widget) { const auto nowMinimumWidth = computeMinWidth(); const auto firstResize = (nowMinimumWidth < wasMinimumWidth); if (firstResize) { - setMinimumWidth(nowMinimumWidth); + updateMinimumSize(); } if (!isMaximized()) { tryToExtendWidthBy(wasWidth + nowRightWidth - wasRightWidth - width()); @@ -949,7 +949,7 @@ void MainWindow::showRightColumn(object_ptr widget) { updateControlsGeometry(); } if (!firstResize) { - setMinimumWidth(nowMinimumWidth); + updateMinimumSize(); } }