mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Projucer: Always initially disable "Use global path" when adding a module from a specified folder
This commit is contained in:
parent
98092a7384
commit
18c0e37f43
2 changed files with 5 additions and 4 deletions
|
|
@ -929,7 +929,7 @@ void EnabledModuleList::addModuleFromUserSelectedFile()
|
|||
if (fc.browseForDirectory())
|
||||
{
|
||||
lastLocation = fc.getResult();
|
||||
addModuleOfferingToCopy (lastLocation);
|
||||
addModuleOfferingToCopy (lastLocation, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -958,7 +958,7 @@ void EnabledModuleList::addModuleInteractive (const String& moduleID)
|
|||
addModuleFromUserSelectedFile();
|
||||
}
|
||||
|
||||
void EnabledModuleList::addModuleOfferingToCopy (const File& f)
|
||||
void EnabledModuleList::addModuleOfferingToCopy (const File& f, bool isFromUserSpecifiedFolder)
|
||||
{
|
||||
ModuleDescription m (f);
|
||||
|
||||
|
|
@ -976,7 +976,8 @@ void EnabledModuleList::addModuleOfferingToCopy (const File& f)
|
|||
return;
|
||||
}
|
||||
|
||||
addModule (m.moduleFolder, areMostModulesCopiedLocally(), areMostModulesUsingGlobalPath());
|
||||
addModule (m.moduleFolder, areMostModulesCopiedLocally(), isFromUserSpecifiedFolder ? false
|
||||
: areMostModulesUsingGlobalPath());
|
||||
}
|
||||
|
||||
bool isJuceFolder (const File& f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue