Skip to content

Commit

Permalink
Hide Param Typein on LastChance
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Nov 26, 2021
1 parent 5bade3c commit cb0440e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/surge-xt/gui/SurgeGUIEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5622,6 +5622,8 @@ bool SurgeGUIEditor::isAHiddenSendOrReturn(Parameter *p)
return false;
}

void SurgeGUIEditor::hideTypeinParamEditor() { typeinParamEditor->setVisible(false); }

void SurgeGUIEditor::activateFromCurrentFx()
{
switch (current_fx)
Expand Down
1 change: 1 addition & 0 deletions src/surge-xt/gui/SurgeGUIEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ class SurgeGUIEditor : public Surge::GUI::IComponentTagValue::Listener,
bool setParameterModulationFromString(Parameter *p, modsources ms, int modsourceScene,
int modidx, const std::string &s);
bool setControlFromString(modsources ms, const std::string &s);
void hideTypeinParamEditor();
friend struct Surge::Overlays::TypeinParamEditor;
friend struct Surge::Overlays::PatchStoreDialog;
friend struct Surge::Widgets::MainFrame;
Expand Down
2 changes: 2 additions & 0 deletions src/surge-xt/gui/widgets/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ void MainFrame::mouseDown(const juce::MouseEvent &event)
return;
}

editor->hideTypeinParamEditor();

if (event.mods.isMiddleButtonDown())
{
editor->toggle_mod_editing();
Expand Down

0 comments on commit cb0440e

Please sign in to comment.