Always decay the message focus request.

The request was only decayed when the row of the message to focus was drawn. If the message was filtered out of the messages list, the request would never expire and the whole list would be drawn without clipping on every frame.
This commit is contained in:
Clément Grégoire
2026-11-10 17:45:56 +01:00
parent 7c6f7b637c
commit 6dbc87ffc4
+1 -1
View File
@@ -324,6 +324,7 @@ void View::DrawMessages()
{
DrawMessageLine( *msgs[msgIdx], hasCallstack, idx );
}
m_msgToFocus.Decay( nullptr );
}
else
{
@@ -378,7 +379,6 @@ void View::DrawMessageLine( const MessageData& msg, bool hasCallstack, int& idx
if( m_msgToFocus == &msg )
{
ImGui::SetScrollHereY();
m_msgToFocus.Decay( nullptr );
m_messagesScrollBottom = false;
}
ImGui::TableNextColumn();