Almost getting there but some still is still messed up...

This commit is contained in:
xenakios
2018-04-26 23:07:08 +03:00
parent a4a8f99f0b
commit c8f865dd4a
5 changed files with 47 additions and 4 deletions

View File

@ -995,7 +995,17 @@ void SpectralChainEditor::mouseDown(const MouseEvent & ev)
juce::Rectangle<int> r(box_w*m_cur_index, 1, 12, 12);
if (r.contains(ev.x, ev.y))
{
for (int i = 0; i < m_order.size(); ++i)
{
if (m_order[i].m_index == m_cur_index)
{
//Logger::writeToLog("SpectralChainEditor::mouseDown "+m_order[i].m_enabled->name);
//return;
}
}
toggleBool(m_order[m_cur_index].m_enabled);
Logger::writeToLog("SpectralChainEditor::mouseDown " + m_order[m_cur_index].m_enabled->name);
//m_src->setSpectrumProcessOrder(m_order);
//if (ModuleOrderOrEnabledChangedCallback)
// ModuleOrderOrEnabledChangedCallback();