mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +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
|
|
@ -334,6 +334,13 @@ void ProjectContentComponent::changeListenerCallback (ChangeBroadcaster*)
|
|||
updateMissingFileStatuses();
|
||||
}
|
||||
|
||||
void ProjectContentComponent::refreshProjectTreeFileStatuses()
|
||||
{
|
||||
if (auto* projectTab = getProjectTab())
|
||||
if (auto* fileTree = projectTab->getFileTreePanel())
|
||||
fileTree->repaint();
|
||||
}
|
||||
|
||||
void ProjectContentComponent::updateMissingFileStatuses()
|
||||
{
|
||||
if (auto* pTab = getProjectTab())
|
||||
|
|
@ -482,6 +489,8 @@ void ProjectContentComponent::saveDocument()
|
|||
{
|
||||
if (! currentDocument->save())
|
||||
showSaveWarning (currentDocument);
|
||||
|
||||
refreshProjectTreeFileStatuses();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -491,8 +500,13 @@ void ProjectContentComponent::saveDocument()
|
|||
|
||||
void ProjectContentComponent::saveAs()
|
||||
{
|
||||
if (currentDocument != nullptr && ! currentDocument->saveAs())
|
||||
showSaveWarning (currentDocument);
|
||||
if (currentDocument != nullptr)
|
||||
{
|
||||
if (! currentDocument->saveAs())
|
||||
showSaveWarning (currentDocument);
|
||||
|
||||
refreshProjectTreeFileStatuses();
|
||||
}
|
||||
}
|
||||
|
||||
bool ProjectContentComponent::goToPreviousFile()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue