Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive "Effects chain" & "User controller" LEDs #4297

Merged
merged 6 commits into from
Apr 24, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/gui/widgets/EffectRackView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ void EffectRackView::deletePlugin( EffectView* view )
Effect * e = view->effect();
m_effectViews.erase( qFind( m_effectViews.begin(), m_effectViews.end(), view ) );
delete view;
if( m_effectViews.size() == 0 )
{
fxChain()->m_enabledModel.setValue( false );
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since EffectChain::clear already have the same functionality, I think you can implement this in EffectChain::removeEffect instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in d3e65ca

fxChain()->removeEffect( e );
e->deleteLater();
update();
Expand Down