1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +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:
Tom Poole 2021-06-30 13:00:21 +01:00
parent f1768843fb
commit fe4ba9071b
79 changed files with 3423 additions and 1332 deletions

View file

@ -664,15 +664,16 @@ void EnabledModulesList::addModuleInteractive (const String& moduleID)
void EnabledModulesList::addModuleFromUserSelectedFile()
{
auto lastLocation = getDefaultModulesFolder();
chooser = std::make_unique<FileChooser> ("Select a module to add...", getDefaultModulesFolder(), "");
auto flags = FileBrowserComponent::openMode | FileBrowserComponent::canSelectDirectories;
FileChooser fc ("Select a module to add...", lastLocation, {});
if (fc.browseForDirectory())
chooser->launchAsync (flags, [this] (const FileChooser& fc)
{
lastLocation = fc.getResult();
addModuleOfferingToCopy (lastLocation, true);
}
if (fc.getResult() == File{})
return;
addModuleOfferingToCopy (fc.getResult(), true);
});
}
void EnabledModulesList::addModuleOfferingToCopy (const File& f, bool isFromUserSpecifiedFolder)