| 795 | } |
| 796 | |
| 797 | void FireAudioProcessorEditor::comboBoxChanged(juce::ComboBox* combobox) |
| 798 | { |
| 799 | if (combobox == stateComponent.getPresetBox()) |
| 800 | { |
| 801 | int selectedId = combobox->getSelectedId(); |
| 802 | |
| 803 | // do this because open and close GUI will use this function, but will reset the value if the presetbox is not "init" |
| 804 | // next, previous, change combobox will change the selectedId, but currentId will change only after this. |
| 805 | // and then, it will load the preset. |
| 806 | |
| 807 | if (stateComponent.getProcStatePresets()->getCurrentPresetId() != selectedId) |
| 808 | { |
| 809 | stateComponent.updatePresetBox(selectedId); |
| 810 | } |
| 811 | multiband.resortAndRedrawLines(); |
| 812 | } |
| 813 | } |
| 814 | |
| 815 | void FireAudioProcessorEditor::setLinearSlider(juce::Slider& slider) |
| 816 | { |
nothing calls this directly
no test coverage detected