Browse Source

Projucer: Fixed a getting the module list for new projects

tags/2021-05-28
Tom Poole 7 years ago
parent
commit
67d2ff2ec8
2 changed files with 6 additions and 5 deletions
  1. +5
    -5
      extras/Projucer/Source/Project/jucer_Module.cpp
  2. +1
    -0
      extras/Projucer/Source/Project/jucer_Project.cpp

+ 5
- 5
extras/Projucer/Source/Project/jucer_Module.cpp 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(); }); });
});
}


+ 1
- 0
extras/Projucer/Source/Project/jucer_Project.cpp View File

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


Loading…
Cancel
Save