Skip to content

Commit

Permalink
Refresh editor when clearing a modulation (#1488)
Browse files Browse the repository at this point in the history
Some modulations in the LFO section don't repaint properly
when odulation is cleared. I can't figure out why so just
make that equivalent to an LFO swap or scene swap by
rebuilding. It's infrequent enough that we can afford it.

Closes #1477
  • Loading branch information
baconpaul authored Jan 16, 2020
1 parent 8b5116e commit b6134fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/gui/SurgeGUIEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2319,6 +2319,11 @@ int32_t SurgeGUIEditor::controlModifierClicked(CControl* control, CButtonState b
addCallbackMenu(contextMenu, tmptxt, [this, ms, ptag]() {
synth->clearModulation(ptag, (modsources)ms);
refresh_mod();
/*
** FIXME - this is a pretty big hammer to deal with
** #1477 - can we be more parsimonious?
*/
synth->refresh_editor = true;
});
eid++;
}
Expand Down

0 comments on commit b6134fa

Please sign in to comment.