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:
parent
b17883618c
commit
5536f98da3
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ LogDock::LogDock(QWidget *parent)
|
|||
void LogDock::appendLine(const QString &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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue