chore: MainWindow: use Size instead of seperate Width/Height calls in update size
This commit is contained in:
parent
f66a50dab7
commit
f3930d9520
1 changed files with 2 additions and 4 deletions
|
|
@ -501,14 +501,12 @@ void MainWindow::resetCore()
|
||||||
void MainWindow::updateSize()
|
void MainWindow::updateSize()
|
||||||
{
|
{
|
||||||
if (Settings::value(Settings::Gui::LogExpanded).toBool()) {
|
if (Settings::value(Settings::Gui::LogExpanded).toBool()) {
|
||||||
setMaximumHeight(16777215);
|
setMaximumSize(16777215, 16777215);
|
||||||
setMaximumWidth(16777215);
|
|
||||||
resize(m_expandedSize);
|
resize(m_expandedSize);
|
||||||
} else {
|
} else {
|
||||||
adjustSize();
|
adjustSize();
|
||||||
// Prevent Resize with log collapsed
|
// Prevent Resize with log collapsed
|
||||||
setMaximumHeight(height());
|
setMaximumSize(width(), height());
|
||||||
setMaximumWidth(width());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue