Only scroll message list to bottom if capture is live.

This commit is contained in:
Bartosz Taudul 2019-08-28 21:04:28 +02:00
parent a2f968d843
commit fc5293b1ae

View File

@ -6863,7 +6863,7 @@ void View::DrawMessages()
}
m_visibleMessages = msgcnt;
if( ImGui::GetScrollY() >= ImGui::GetScrollMaxY() )
if( m_worker.IsConnected() && ImGui::GetScrollY() >= ImGui::GetScrollMaxY() )
{
ImGui::SetScrollHereY( 1.f );
}