From e5825f52dc1950c9110aa4c50a8eff930ca06dd9 Mon Sep 17 00:00:00 2001 From: xenakios Date: Sat, 3 Mar 2018 22:32:44 +0200 Subject: [PATCH] OK, it's not going to work... --- Source/PluginEditor.cpp | 4 ++-- Source/PluginProcessor.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index dec5af9..12cb419 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -383,14 +383,14 @@ void PaulstretchpluginAudioProcessorEditor::filesDropped(const StringArray & fil void PaulstretchpluginAudioProcessorEditor::chooseFile() { - processor.m_import_dlg_open = true; + toFront(true); String initiallocfn = processor.m_propsfile->m_props_file->getValue("importfilefolder", File::getSpecialLocation(File::userHomeDirectory).getFullPathName()); File initialloc(initiallocfn); String filterstring = processor.m_afm->getWildcardForAllFormats(); FileChooser myChooser("Please select audio file...", initialloc, - filterstring,true); + filterstring,false); if (myChooser.browseForFileToOpen()) { File resu = myChooser.getResult(); diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index eccfba1..93fcdc1 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -795,10 +795,10 @@ void PaulstretchpluginAudioProcessor::timerCallback(int id) { if (id == 1) { - if (*getBoolParameter(cpi_import_file)==true) + if (*getBoolParameter(cpi_import_file)==true && m_import_dlg_open == false) { + m_import_dlg_open = true; *getBoolParameter(cpi_import_file) = false; - if (m_import_dlg_open == false) { callGUI(this, [](PaulstretchpluginAudioProcessorEditor* ed) {