1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Fixed a getting the module list for new projects

This commit is contained in:
Tom Poole 2018-08-29 19:05:55 +01:00
parent 5c26cd5586
commit 67d2ff2ec8
2 changed files with 6 additions and 5 deletions

View file

@ -203,12 +203,12 @@ ThreadPoolJob* AvailableModuleList::createScannerJob (const Array<File>& paths)
{
return new ModuleScannerJob (paths, [this] (ModuleIDAndFolderList scannedModuleList)
{
{
const ScopedLock swapLock (lock);
moduleList.swap (scannedModuleList);
}
{
const ScopedLock swapLock (lock);
moduleList.swap (scannedModuleList);
}
MessageManager::callAsync ([this] { listeners.call ([] (Listener& l) { l.availableModulesChanged(); }); });
listeners.call ([] (Listener& l) { MessageManager::callAsync ([&] { l.availableModulesChanged(); }); });
});
}

View file

@ -52,6 +52,7 @@ Project::Project (const File& f)
setFile (f);
removeDefunctExporters();
exporterPathsModuleList.reset (new AvailableModuleList());
updateOldModulePaths();
updateOldStyleConfigList();
setCppVersionFromOldExporterSettings();