Fix mass visibility changing.

This commit is contained in:
Bartosz Taudul 2022-09-03 22:08:08 +02:00
parent d65bde99a2
commit 3ee928a7d1
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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 );
}
}