OK, it's not going to work...
This commit is contained in:
parent
47bf763408
commit
e5825f52dc
@ -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();
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user