1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add select/unselect all threads visibility option.

This commit is contained in:
Bartosz Taudul 2018-07-14 00:08:37 +02:00
parent 9ac47eef0a
commit f4f7e58e88

View File

@ -3510,6 +3510,22 @@ void View::DrawOptions()
ImGui::TextDisabled( "(%zu)", m_worker.GetThreadData().size() );
if( expand )
{
if( ImGui::SmallButton( "Select all" ) )
{
for( const auto& t : m_worker.GetThreadData() )
{
Visible( t ) = true;
}
}
ImGui::SameLine();
if( ImGui::SmallButton( "Unselect all" ) )
{
for( const auto& t : m_worker.GetThreadData() )
{
Visible( t ) = false;
}
}
int idx = 0;
for( const auto& t : m_worker.GetThreadData() )
{