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:
parent
141be27dab
commit
fedbb67452
5 changed files with 54 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue