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:
parent
c967a398fb
commit
eed45b7462
9 changed files with 72 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue