1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

Projucer: Show the option to remove references or move to trash when deleting file groups and hide the file group information after deleting

This commit is contained in:
ed 2017-10-31 11:10:06 +00:00
parent 141be27dab
commit fedbb67452
5 changed files with 54 additions and 26 deletions

View file

@ -447,6 +447,15 @@ bool ProjectContentComponent::setEditorComponent (Component* editor,
return false;
}
Component* ProjectContentComponent::getEditorComponentContent() const
{
if (contentView != nullptr)
if (auto* vp = dynamic_cast<ContentViewport*> (contentView.get()))
return vp->viewport.getViewedComponent();
return nullptr;
}
void ProjectContentComponent::closeDocument()
{
if (currentDocument != nullptr)