From 90765fa52ad0e3a3120a8f889a1e8582e32f4ae5 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 16 Oct 2018 10:25:25 +0100 Subject: [PATCH] Projucer: Re-scan module paths immediately on start up --- extras/Projucer/Source/Application/jucer_Application.cpp | 6 +++--- extras/Projucer/Source/Project/jucer_Module.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extras/Projucer/Source/Application/jucer_Application.cpp b/extras/Projucer/Source/Application/jucer_Application.cpp index 109c470be7..ef41c632b7 100644 --- a/extras/Projucer/Source/Application/jucer_Application.cpp +++ b/extras/Projucer/Source/Application/jucer_Application.cpp @@ -110,6 +110,9 @@ void ProjucerApplication::initialise (const String& commandLine) return; } + rescanJUCEPathModules(); + rescanUserPathModules(); + openDocumentManager.registerType (new ProjucerAppClasses::LiveBuildCodeEditorDocument::Type(), 2); childProcessCache.reset (new ChildProcessCache()); @@ -162,9 +165,6 @@ void ProjucerApplication::handleAsyncUpdate() if (licenseController != nullptr) licenseController->startWebviewIfNeeded(); - rescanJUCEPathModules(); - rescanUserPathModules(); - #if JUCE_MAC PopupMenu extraAppleMenuItems; createExtraAppleMenuItems (extraAppleMenuItems); diff --git a/extras/Projucer/Source/Project/jucer_Module.cpp b/extras/Projucer/Source/Project/jucer_Module.cpp index 853b51a2ec..7c10674e29 100644 --- a/extras/Projucer/Source/Project/jucer_Module.cpp +++ b/extras/Projucer/Source/Project/jucer_Module.cpp @@ -135,7 +135,7 @@ static void addAllModulesInSubfoldersRecursively (const File& path, int depth, M if (job->shouldExit()) return; - auto childPath = iter.getFile().getLinkedTarget(); + auto childPath = iter.getFile(); if (! tryToAddModuleFromFolder (childPath, list)) addAllModulesInSubfoldersRecursively (childPath, depth - 1, list);