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:
parent
04ef38c6a1
commit
059c2e12ed
1 changed files with 8 additions and 0 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue