fix(LogDock): Scroll the log widget to the bottom if the log is visible and the find widget is not expanded when appending new log lines

fixes: #9622
This commit is contained in:
sithlord48 2026-04-01 20:21:25 -04:00 committed by Nick Bolton
parent b17883618c
commit 5536f98da3

View file

@ -66,6 +66,9 @@ LogDock::LogDock(QWidget *parent)
void LogDock::appendLine(const QString &msg) void LogDock::appendLine(const QString &msg)
{ {
m_textLog->appendLine(msg); m_textLog->appendLine(msg);
if (auto p = static_cast<QWidget *>(parent()); p->isVisible() && !p->isMinimized() && !m_searchWidget->isExpanded()) {
m_textLog->scrollToBottom();
}
} }
void LogDock::setFloating(bool floating) void LogDock::setFloating(bool floating)