diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 581ccd3..b2d5214 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -562,28 +562,28 @@ void PaulstretchpluginAudioProcessorEditor::chooseFile() void PaulstretchpluginAudioProcessorEditor::showSettingsMenu() { - m_test_menu = PopupMenu(); - m_test_menu.addItem(4, "Reset parameters", true, false); - m_test_menu.addItem(5, "Load file with plugin state", true, processor.m_load_file_with_state); - m_test_menu.addItem(1, "Play when host transport running", true, processor.m_play_when_host_plays); - m_test_menu.addItem(2, "Capture when host transport running", true, processor.m_capture_when_host_plays); - m_test_menu.addItem(8, "Mute audio while capturing", true, processor.m_mute_while_capturing); + m_settings_menu = PopupMenu(); + m_settings_menu.addItem(4, "Reset parameters", true, false); + m_settings_menu.addItem(5, "Load file with plugin state", true, processor.m_load_file_with_state); + m_settings_menu.addItem(1, "Play when host transport running", true, processor.m_play_when_host_plays); + m_settings_menu.addItem(2, "Capture when host transport running", true, processor.m_capture_when_host_plays); + m_settings_menu.addItem(8, "Mute audio while capturing", true, processor.m_mute_while_capturing); int capturelen = *processor.getFloatParameter(cpi_max_capture_len); PopupMenu capturelenmenu; for (int i=0;i m_parcomps; //SpectralVisualizer m_specvis; @@ -340,6 +339,7 @@ private: MyTabComponent m_wavefilter_tab; Component* m_wave_container=nullptr; void showAbout(); + PopupMenu m_settings_menu; std::vector m_capturelens{ 2,5,10,30,60,120 }; JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor) };