mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Replace setMinimumWidth with updateMinimumSize in Window::MainWindow
There's no RpWindow::setMinimumWidth
This commit is contained in:
parent
32eca14a81
commit
1e744efef8
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue