mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Projucer: Lock the message loop when creating icon image files
This commit is contained in:
parent
2ac2a39a21
commit
455c323184
1 changed files with 1 additions and 0 deletions
|
|
@ -927,6 +927,7 @@ void Project::Item::setID (const String& newID) { state.setProperty (Ids::ID,
|
|||
|
||||
Drawable* Project::Item::loadAsImageFile() const
|
||||
{
|
||||
const MessageManagerLock mml;
|
||||
return isValid() ? Drawable::createFromImageFile (getFile())
|
||||
: nullptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue