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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user