Only add the supporter files to the queue.

This commit is contained in:
Damiano Galassi committed 2015-09-28 13:40:39 +02:00
1 parent b6105f52bb
commit 31280c4f41
1 file changed
+3
+3
View File
@@ -693,11 +693,14 @@ static void *SBQueueContex = &SBQueueContex;
NSArray *items = [pboard readObjectsForClasses:@[[NSURL class]] options: nil];
NSMutableArray *queueItems = [[NSMutableArray alloc] init];
NSMutableIndexSet *indexes = [[NSMutableIndexSet alloc] init];
NSArray<NSString *> *supportedFileFormats = [MP42FileImporter supportedFileFormats];
for (NSURL *url in items) {
if ([supportedFileFormats containsObject:url.pathExtension.lowercaseString]) {
[queueItems addObject:[self createItemWithURL:url]];
[indexes addIndex:row];
}
}
[self addItems:queueItems atIndexes:indexes];