| 606 | } |
| 607 | |
| 608 | void Multiband::buttonClicked(juce::Button* button) |
| 609 | { |
| 610 | // click closebutton and delete line. |
| 611 | for (int i = 0; i < 4; i++) |
| 612 | { |
| 613 | if (button == bandUIs[i].closeButton.get()) // <--- MODIFIED |
| 614 | { |
| 615 | setStatesWhenDelete(i); |
| 616 | sortLines(); |
| 617 | setLineRelatedBoundsByX(); |
| 618 | setSoloRelatedBounds(); |
| 619 | if (auto* param = processor.treeState.getParameter(NUM_BANDS_ID)) |
| 620 | { |
| 621 | param->setValueNotifyingHost(param->getNormalisableRange().convertTo0to1(lineNum + 1)); |
| 622 | } |
| 623 | } |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | EnableButton& Multiband::getEnableButton(const int index) |
| 628 | { |