|
|
|
@@ -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()
|
|
|
|
|