mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Select/unselect all plot visibility.
This commit is contained in:
parent
f4f7e58e88
commit
a26ab263dd
@ -3496,6 +3496,22 @@ void View::DrawOptions()
|
||||
ImGui::TextDisabled( "(%zu)", m_worker.GetPlots().size() );
|
||||
if( expand )
|
||||
{
|
||||
if( ImGui::SmallButton( "Select all" ) )
|
||||
{
|
||||
for( const auto& p : m_worker.GetPlots() )
|
||||
{
|
||||
Visible( p ) = true;
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
if( ImGui::SmallButton( "Unselect all" ) )
|
||||
{
|
||||
for( const auto& p : m_worker.GetPlots() )
|
||||
{
|
||||
Visible( p ) = false;
|
||||
}
|
||||
}
|
||||
|
||||
for( const auto& p : m_worker.GetPlots() )
|
||||
{
|
||||
ImGui::Checkbox( GetPlotName( p ), &Visible( p ) );
|
||||
|
Loading…
Reference in New Issue
Block a user