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:
parent
9ac47eef0a
commit
f4f7e58e88
@ -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() )
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user