mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Set the default value of JUCE_MODAL_LOOPS_PERMITTED to 0
See BREAKING-CHANGES.txt for more details.
This commit is contained in:
parent
f1768843fb
commit
fe4ba9071b
79 changed files with 3423 additions and 1332 deletions
|
|
@ -100,13 +100,18 @@ namespace
|
|||
if (fixMissingDependencies)
|
||||
tryToFixMissingModuleDependencies();
|
||||
|
||||
auto error = justSaveResources ? project->saveResourcesOnly()
|
||||
: project->saveProject();
|
||||
const auto onCompletion = [this] (Result result)
|
||||
{
|
||||
project.reset();
|
||||
|
||||
project.reset();
|
||||
if (result.failed())
|
||||
ConsoleApplication::fail ("Error when saving: " + result.getErrorMessage());
|
||||
};
|
||||
|
||||
if (error.failed())
|
||||
ConsoleApplication::fail ("Error when saving: " + error.getErrorMessage());
|
||||
if (justSaveResources)
|
||||
onCompletion (project->saveResourcesOnly());
|
||||
else
|
||||
project->saveProject (Async::no, nullptr, onCompletion);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue