1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +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

@ -1055,7 +1055,7 @@ bool ProjucerApplication::perform (const InvocationInfo& info)
case CommandIDs::newPIP: createNewPIP(); break;
case CommandIDs::open: askUserToOpenFile(); break;
case CommandIDs::launchDemoRunner: launchDemoRunner(); break;
case CommandIDs::saveAll: openDocumentManager.saveAll(); break;
case CommandIDs::saveAll: saveAllDocuments(); break;
case CommandIDs::closeAllWindows: closeAllMainWindowsAndQuitIfNeeded(); break;
case CommandIDs::closeAllDocuments: closeAllDocuments (true); break;
case CommandIDs::clearRecentFiles: clearRecentFiles(); break;
@ -1120,6 +1120,15 @@ bool ProjucerApplication::openFile (const File& file)
return mainWindowList.openFile (file);
}
void ProjucerApplication::saveAllDocuments()
{
openDocumentManager.saveAll();
for (int i = 0; i < mainWindowList.windows.size(); ++i)
if (auto* pcc = mainWindowList.windows.getUnchecked(i)->getProjectContentComponent())
pcc->refreshProjectTreeFileStatuses();
}
bool ProjucerApplication::closeAllDocuments (bool askUserToSave)
{
return openDocumentManager.closeAll (askUserToSave);