KnownPluginList duplicates folder entries when they differ by case


#1

KnownPluginList duplicates entries when they differ by case. Soundtoys for example sets their manufacturer name as
’Soundtoys’ and ‘SoundToys’ So my plugin list looks like this:

Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >
Soundtoys >
SoundToys >

Instead of just having a folder for each case of soundtoys

To fix this can you either:

Make the PluginSorter::compareElements() case sensitive when it is sorting. So each case will get it’s own folder.

Or, in PluginTreeUtils::buildTreeByCategory change

if (thisType != lastType)

to

if (thisType.toLowerCase() != lastType.toLowerCase())

so that categories that only differ by case get put into the same folder.


#2

There’s a better method: String::equalsIgnoreCase

Also, isn’t it the manufacturer’s responsibility to sort out their casing? Seems like a good way to shame them. :slight_smile:


#3

They probably should, but in the mean time my menu shouldn’t look like this:


#4

Audio plugin host does it too:


#5

A fix will appear on the develop branch shortly.


#6

Awesome, thx.

Here is some more text to get to 20 characters.