2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replace setMinimumWidth with updateMinimumSize in Window::MainWindow

There's no RpWindow::setMinimumWidth
This commit is contained in:
Ilya Fedin
2022-03-23 03:04:17 +04:00
committed by John Preston
parent 32eca14a81
commit 1e744efef8

View File

@@ -941,7 +941,7 @@ void MainWindow::showRightColumn(object_ptr<TWidget> 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<TWidget> widget) {
updateControlsGeometry();
}
if (!firstResize) {
setMinimumWidth(nowMinimumWidth);
updateMinimumSize();
}
}