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() 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());
} }
} }