mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 nowMinimumWidth = computeMinWidth();
|
||||||
const auto firstResize = (nowMinimumWidth < wasMinimumWidth);
|
const auto firstResize = (nowMinimumWidth < wasMinimumWidth);
|
||||||
if (firstResize) {
|
if (firstResize) {
|
||||||
setMinimumWidth(nowMinimumWidth);
|
updateMinimumSize();
|
||||||
}
|
}
|
||||||
if (!isMaximized()) {
|
if (!isMaximized()) {
|
||||||
tryToExtendWidthBy(wasWidth + nowRightWidth - wasRightWidth - width());
|
tryToExtendWidthBy(wasWidth + nowRightWidth - wasRightWidth - width());
|
||||||
|
@ -949,7 +949,7 @@ void MainWindow::showRightColumn(object_ptr<TWidget> widget) {
|
||||||
updateControlsGeometry();
|
updateControlsGeometry();
|
||||||
}
|
}
|
||||||
if (!firstResize) {
|
if (!firstResize) {
|
||||||
setMinimumWidth(nowMinimumWidth);
|
updateMinimumSize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue