Browse Source

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

tags/2021-05-28
ed 6 years ago
parent
commit
4cef02477d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp

+ 2
- 2
modules/juce_gui_basics/native/juce_win32_DragAndDrop.cpp 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)
}
//==============================================================================


Loading…
Cancel
Save