mirror of
https://github.com/wolfpld/tracy.git
synced 2026-11-19 22:25:59 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user