diff --git a/resources/surge-shared/configuration.xml b/resources/surge-shared/configuration.xml index 39a8064c6ff..8aca741529c 100644 --- a/resources/surge-shared/configuration.xml +++ b/resources/surge-shared/configuration.xml @@ -138,9 +138,9 @@ + p6="0.000000" p7="0.500000"/> + p6="0.000000" p7="1.000000"/> @@ -151,8 +151,8 @@ p6="0.000000" p7="0.000000" p8="-60" p8_deactivated="1"/> - diff --git a/src/surge-xt/gui/widgets/EffectChooser.cpp b/src/surge-xt/gui/widgets/EffectChooser.cpp index e136cda3997..609f934a615 100644 --- a/src/surge-xt/gui/widgets/EffectChooser.cpp +++ b/src/surge-xt/gui/widgets/EffectChooser.cpp @@ -209,6 +209,15 @@ juce::Rectangle EffectChooser::getEffectRectangle(int i) return r; } +void EffectChooser::mouseDoubleClick(const juce::MouseEvent &event) +{ + if (!hasDragged && currentClicked >= 0) + { + deactivatedBitmask ^= (1 << currentClicked); + notifyValueChanged(); + } +} + void EffectChooser::mouseDown(const juce::MouseEvent &event) { if (forwardedMainFrameMouseDowns(event)) diff --git a/src/surge-xt/gui/widgets/EffectChooser.h b/src/surge-xt/gui/widgets/EffectChooser.h index 34cbbfc478f..013758c4e0b 100644 --- a/src/surge-xt/gui/widgets/EffectChooser.h +++ b/src/surge-xt/gui/widgets/EffectChooser.h @@ -52,6 +52,7 @@ struct EffectChooser : public juce::Component, public WidgetBaseMixin fxTypes; + void mouseDoubleClick(const juce::MouseEvent &event) override; void mouseDown(const juce::MouseEvent &event) override; void mouseUp(const juce::MouseEvent &event) override; void mouseDrag(const juce::MouseEvent &event) override;