1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Windows: Fixed a bug when using DragAndDropContainer in a plug-in after closing and re-opening

This commit is contained in:
ed 2019-02-06 11:01:46 +00:00
parent 7d13b82a10
commit 4cef02477d

View file

@ -292,14 +292,14 @@ namespace DragAndDropHelpers
clearSingletonInstance();
}
juce_DeclareSingleton_SingleThreaded (ThreadPoolHolder, true)
JUCE_DECLARE_SINGLETON_SINGLETHREADED (ThreadPoolHolder, false)
// We need to make sure we don't do simultaneous text and file drag and drops,
// so use a pool that can only run a single job.
ThreadPool pool { 1 };
};
juce_ImplementSingleton_SingleThreaded (ThreadPoolHolder)
JUCE_IMPLEMENT_SINGLETON (ThreadPoolHolder)
}
//==============================================================================