OK, it's not going to work...

This commit is contained in:
xenakios 2018-03-03 22:32:44 +02:00
parent 47bf763408
commit e5825f52dc
2 changed files with 4 additions and 4 deletions

View File

@ -383,14 +383,14 @@ void PaulstretchpluginAudioProcessorEditor::filesDropped(const StringArray & fil
void PaulstretchpluginAudioProcessorEditor::chooseFile() void PaulstretchpluginAudioProcessorEditor::chooseFile()
{ {
processor.m_import_dlg_open = true; toFront(true);
String initiallocfn = processor.m_propsfile->m_props_file->getValue("importfilefolder", String initiallocfn = processor.m_propsfile->m_props_file->getValue("importfilefolder",
File::getSpecialLocation(File::userHomeDirectory).getFullPathName()); File::getSpecialLocation(File::userHomeDirectory).getFullPathName());
File initialloc(initiallocfn); File initialloc(initiallocfn);
String filterstring = processor.m_afm->getWildcardForAllFormats(); String filterstring = processor.m_afm->getWildcardForAllFormats();
FileChooser myChooser("Please select audio file...", FileChooser myChooser("Please select audio file...",
initialloc, initialloc,
filterstring,true); filterstring,false);
if (myChooser.browseForFileToOpen()) if (myChooser.browseForFileToOpen())
{ {
File resu = myChooser.getResult(); File resu = myChooser.getResult();

View File

@ -795,10 +795,10 @@ void PaulstretchpluginAudioProcessor::timerCallback(int id)
{ {
if (id == 1) 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; *getBoolParameter(cpi_import_file) = false;
if (m_import_dlg_open == false)
{ {
callGUI(this, [](PaulstretchpluginAudioProcessorEditor* ed) callGUI(this, [](PaulstretchpluginAudioProcessorEditor* ed)
{ {