|
|
@@ -551,18 +551,12 @@ public class Project
|
|
|
_importers.add(data);
|
|
|
_importers.sort((a, b) => { return a.order < b.order ? -1 : 1; });
|
|
|
|
|
|
- //check for an remove duplicates
|
|
|
-
|
|
|
- foreach (string ext in data.extensions){
|
|
|
- if (_all_extensions_importer_data.extensions.contains(ext)){
|
|
|
- //it's a duplicate, don't add it
|
|
|
- }
|
|
|
- else {
|
|
|
+ // Skip duplicated extensions.
|
|
|
+ foreach (string ext in data.extensions) {
|
|
|
+ if (!_all_extensions_importer_data.extensions.contains(ext))
|
|
|
_all_extensions_importer_data.extensions.add(ext);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
_all_extensions_importer_data._filter = create_gtk_file_filter("All", _all_extensions_importer_data.extensions);
|
|
|
}
|
|
|
|