diff --git a/FileSplitter/FileSplitter.cs b/FileSplitter/FileSplitter.cs index 0e3395d..7dacaab 100644 --- a/FileSplitter/FileSplitter.cs +++ b/FileSplitter/FileSplitter.cs @@ -988,6 +988,7 @@ public FileSplitter(bool autoLoad, Type[] modules, string[] pluginFolders, Progr //Sorts modules alphabetically loadedTypes.Sort((x, y) => ((IFileSplitterModule)Activator.CreateInstance(x)).DisplayName.CompareTo(((IFileSplitterModule)Activator.CreateInstance(y)).DisplayName)); + loadedTypes = loadedTypes.Distinct().ToList(); //Lists every module by its display name LoadedModules = new ReadOnlyDictionary(loadedTypes.ToDictionary(x => ((IFileSplitterModule)Activator.CreateInstance(x)).DisplayName, y => y));