Browse Source

Fixed an issue when adding plug-ins with empty paths on macOS in KnownPluginList::createTree() with sortByFileSystemLocation

tags/2021-05-28
ed 6 years ago
parent
commit
08501a3705
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp

+ 5
- 5
modules/juce_audio_processors/scanning/juce_KnownPluginList.cpp View File

@@ -463,17 +463,17 @@ struct PluginTreeUtils
static void addPlugin (KnownPluginList::PluginTree& tree, PluginDescription pd, String path)
{
#if JUCE_MAC
if (path.containsChar (':'))
path = path.fromFirstOccurrenceOf (":", false, false); // avoid the special AU formatting nonsense on Mac..
#endif
if (path.isEmpty())
{
tree.plugins.add (pd);
}
else
{
#if JUCE_MAC
if (path.containsChar (':'))
path = path.fromFirstOccurrenceOf (":", false, false); // avoid the special AU formatting nonsense on Mac..
#endif
auto firstSubFolder = path.upToFirstOccurrenceOf ("/", false, false);
auto remainingPath = path.fromFirstOccurrenceOf ("/", false, false);


Loading…
Cancel
Save