chore: MainWindow: use Size instead of seperate Width/Height calls in update size

This commit is contained in:
sithlord48
2025-03-20 13:40:19 -04:00
committed by Nick Bolton
parent f66a50dab7
commit f3930d9520

View File

@ -501,14 +501,12 @@ void MainWindow::resetCore()
void MainWindow::updateSize()
{
if (Settings::value(Settings::Gui::LogExpanded).toBool()) {
setMaximumHeight(16777215);
setMaximumWidth(16777215);
setMaximumSize(16777215, 16777215);
resize(m_expandedSize);
} else {
adjustSize();
// Prevent Resize with log collapsed
setMaximumHeight(height());
setMaximumWidth(width());
setMaximumSize(width(), height());
}
}