Add messages filter clear button.

This commit is contained in:
Bartosz Taudul 2019-07-25 20:49:44 +02:00
parent 31aeadeba0
commit d3e8fe0133

View File

@ -5687,6 +5687,15 @@ void View::DrawMessages()
for( const auto& t : m_threadOrder ) if( !t->messages.empty() ) tsz++; for( const auto& t : m_threadOrder ) if( !t->messages.empty() ) tsz++;
m_messageFilter.Draw( "Filter messages", 200 ); m_messageFilter.Draw( "Filter messages", 200 );
ImGui::SameLine();
#ifdef TRACY_EXTENDED_FONT
if( ImGui::Button( ICON_FA_BAN " Clear" ) )
#else
if( ImGui::Button( "Clear" ) )
#endif
{
m_messageFilter.Clear();
}
#ifdef TRACY_EXTENDED_FONT #ifdef TRACY_EXTENDED_FONT
auto expand = ImGui::TreeNode( ICON_FA_RANDOM " Visible threads:" ); auto expand = ImGui::TreeNode( ICON_FA_RANDOM " Visible threads:" );