1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Projucer: Ensure that explicitly set module paths are prioritised over the global path when searching

This commit is contained in:
ed 2018-08-23 18:29:40 +01:00
parent 04ef38c6a1
commit 059c2e12ed

View file

@ -1935,6 +1935,14 @@ void Project::rescanExporterPathModules (bool async)
ModuleIDAndFolder Project::getModuleWithID (const String& id)
{
if (! getEnabledModules().shouldUseGlobalPath (id))
{
const auto& mod = exporterPathsModuleList->getModuleWithID (id);
if (mod.second != File())
return mod;
}
const auto& list = (isJUCEModule (id) ? ProjucerApplication::getApp().getJUCEPathModuleList().getAllModules()
: ProjucerApplication::getApp().getUserPathsModuleList().getAllModules());