mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Introjucer: added a "save all" command.
This commit is contained in:
parent
ab053c5503
commit
4e085e7707
4 changed files with 23 additions and 8 deletions
|
|
@ -257,9 +257,14 @@ bool OpenDocumentManager::anyFilesNeedSaving() const
|
|||
bool OpenDocumentManager::saveAll()
|
||||
{
|
||||
for (int i = documents.size(); --i >= 0;)
|
||||
{
|
||||
if (! documents.getUnchecked (i)->save())
|
||||
return false;
|
||||
|
||||
IntrojucerApp::getApp().mainWindowList.updateAllWindowTitles();
|
||||
IntrojucerApp::getCommandManager().commandStatusChanged();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue