mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
Minor introjucer work.
This commit is contained in:
parent
b4446d34ca
commit
a016944e69
4 changed files with 9 additions and 11 deletions
|
|
@ -63,14 +63,10 @@ Project::Project (const File& file_)
|
|||
mainProjectIcon.setImage (ImageCache::getFromMemory (BinaryData::juce_icon_png, BinaryData::juce_icon_pngSize));
|
||||
|
||||
projectRoot.addListener (this);
|
||||
|
||||
JucerApplication::getApp()->projectOpened (this);
|
||||
}
|
||||
|
||||
Project::~Project()
|
||||
{
|
||||
JucerApplication::getApp()->projectClosed (this);
|
||||
|
||||
projectRoot.removeListener (this);
|
||||
OpenDocumentManager::getInstance()->closeAllDocumentsUsingProject (*this, false);
|
||||
}
|
||||
|
|
@ -233,9 +229,7 @@ Result Project::loadDocument (const File& file)
|
|||
return Result::fail ("The document contains errors and couldn't be parsed!");
|
||||
|
||||
registerRecentFile (file);
|
||||
JucerApplication::getApp()->projectClosed (this);
|
||||
projectRoot = newTree;
|
||||
JucerApplication::getApp()->projectOpened (this);
|
||||
|
||||
removeDefunctExporters();
|
||||
setMissingDefaultValues();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue