mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 15:34:36 +00:00
Fix mass visibility changing.
This commit is contained in:
parent
d65bde99a2
commit
3ee928a7d1
@ -23,6 +23,7 @@ public:
|
||||
virtual bool IsEmpty() const { return false; }
|
||||
|
||||
void VisibilityCheckbox();
|
||||
void SetVisible( bool visible ) { m_visible = visible; }
|
||||
|
||||
protected:
|
||||
virtual uint32_t HeaderColor() const = 0;
|
||||
|
@ -549,7 +549,7 @@ void View::DrawOptions()
|
||||
{
|
||||
for( const auto& p : m_worker.GetPlots() )
|
||||
{
|
||||
m_tc.Vis( p ).visible = true;
|
||||
m_tc.GetItem( p ).SetVisible( true );
|
||||
}
|
||||
}
|
||||
ImGui::SameLine();
|
||||
@ -557,7 +557,7 @@ void View::DrawOptions()
|
||||
{
|
||||
for( const auto& p : m_worker.GetPlots() )
|
||||
{
|
||||
m_tc.Vis( p ).visible = false;
|
||||
m_tc.GetItem( p ).SetVisible( false );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user