Skip to content

Commit

Permalink
Skip VST3 Menus in Reason
Browse files Browse the repository at this point in the history
Reason 12 / MacOS 13 VST3 menus seem to crash so skip that
feature. Addresses surge-synthesizer#6752
  • Loading branch information
baconpaul committed Jan 7, 2023
1 parent 987bd1e commit 1e98196
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/surge-xt/SurgeSynthEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ void SurgeSynthEditor::endMacroEdit(long macroNum)

juce::PopupMenu SurgeSynthEditor::hostMenuFor(Parameter *p)
{
// See issue 6752
if (juce::PluginHostType().isReason())
return {};

auto par = processor.paramsByID[processor.surge->idForParameter(p)];

if (auto *c = getHostContext())
Expand All @@ -480,6 +484,10 @@ juce::PopupMenu SurgeSynthEditor::hostMenuFor(Parameter *p)

juce::PopupMenu SurgeSynthEditor::hostMenuForMacro(int macro)
{
// See issue 6752
if (juce::PluginHostType().isReason())
return {};

auto par = processor.macrosById[macro];

if (auto *c = getHostContext())
Expand Down

0 comments on commit 1e98196

Please sign in to comment.