fix: log Resize update the timer to 15ms

This commit is contained in:
sithlord48 2025-03-14 11:18:54 -04:00 committed by Nick Bolton
parent 80f814a2da
commit ed1bf01306

View file

@ -363,8 +363,8 @@ void MainWindow::toggleLogVisible(bool visible)
} }
ui->textLog->setVisible(visible); ui->textLog->setVisible(visible);
Settings::setValue(Settings::Gui::LogExpanded, visible); Settings::setValue(Settings::Gui::LogExpanded, visible);
// 1 ms delay is to make sure we have left the function before calling updateSize // 15 ms delay is to make sure we have left the function before calling updateSize
QTimer::singleShot(1, this, &MainWindow::updateSize); QTimer::singleShot(15, this, &MainWindow::updateSize);
} }
void MainWindow::firstShown() void MainWindow::firstShown()