1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MessageManager: Only reinitialise platform-specific code on Windows when calling setCurrentThreadAsMessageThread()

This commit is contained in:
ed 2021-03-30 17:36:31 +01:00
parent 58761a44c1
commit 76d5c07c66

View file

@ -231,9 +231,11 @@ void MessageManager::setCurrentThreadAsMessageThread()
{ {
messageThreadId = thisThread; messageThreadId = thisThread;
#if JUCE_WINDOWS
// This is needed on windows to make sure the message window is created by this thread // This is needed on windows to make sure the message window is created by this thread
doPlatformSpecificShutdown(); doPlatformSpecificShutdown();
doPlatformSpecificInitialisation(); doPlatformSpecificInitialisation();
#endif
} }
} }