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

Projucer: Mark modified files with an asterisk in the file tree panel

This commit is contained in:
ed 2018-05-21 17:03:46 +01:00
parent c967a398fb
commit eed45b7462
9 changed files with 72 additions and 5 deletions

View file

@ -47,13 +47,20 @@ bool DocumentEditorComponent::documentAboutToClose (OpenDocumentManager::Documen
{
jassert (document != nullptr);
if (ProjectContentComponent* pcc = findParentComponentOfClass<ProjectContentComponent>())
if (auto* pcc = findParentComponentOfClass<ProjectContentComponent>())
pcc->hideDocument (document);
}
return true;
}
void DocumentEditorComponent::setEditedState (bool /*hasBeenEdited*/)
void DocumentEditorComponent::setEditedState (bool hasBeenEdited)
{
if (hasBeenEdited != lastEditedState)
{
if (auto* pcc = findParentComponentOfClass<ProjectContentComponent>())
pcc->refreshProjectTreeFileStatuses();
lastEditedState = hasBeenEdited;
}
}