mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-28 02:30:05 +00:00
Made it possible to build plugins with JUCE_MODAL_LOOPS_PERMITTED turned off
This commit is contained in:
parent
8fb779e2fb
commit
c0ccc756e4
1 changed files with 2 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ void detachComponentFromWindowRef (Component* comp, void* window, bool isNSView)
|
|||
else
|
||||
[hostWindow release];
|
||||
|
||||
#if JUCE_MODAL_LOOPS_PERMITTED
|
||||
static bool needToRunMessageLoop = ! getHostType().isReaper();
|
||||
|
||||
// The event loop needs to be run between closing the window and deleting the plugin,
|
||||
|
|
@ -226,6 +227,7 @@ void detachComponentFromWindowRef (Component* comp, void* window, bool isNSView)
|
|||
if (needToRunMessageLoop)
|
||||
for (int i = 20; --i >= 0;)
|
||||
MessageManager::getInstance()->runDispatchLoopUntil (1);
|
||||
#endif
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue