The Popupmenu doesn't need to be a member, which is a bit surprising...

This commit is contained in:
xenakios 2018-11-13 23:32:27 +02:00
parent 7c0c5ae325
commit b192c720d7
2 changed files with 2 additions and 3 deletions

View File

@ -554,8 +554,8 @@ void PaulstretchpluginAudioProcessorEditor::chooseFile()
void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
{
m_settings_menu = PopupMenu();
m_settings_menu.addItem(4, "Reset parameters", true, false);
PopupMenu m_settings_menu;
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);

View File

@ -339,7 +339,6 @@ private:
MyTabComponent m_wavefilter_tab;
Component* m_wave_container=nullptr;
void showAbout();
PopupMenu m_settings_menu;
std::vector<int> m_capturelens{ 2,5,10,30,60,120 };
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
};