Enable "Edit…" menu for completed items.

This commit is contained in:
Damiano Galassi committed 2018-03-22 11:19:26 +01:00
1 parent e3cd4fd77c
commit 2676cc9fca
2 files changed
+14 -4

No files matched your search

+4 -1
View File
@@ -201,7 +201,10 @@
NSString *type;
[self.fileURL getResourceValue:&type forKey:NSURLTypeIdentifierKey error:outError];
if ([type isEqualToString:@"com.apple.m4a-audio"] || [type isEqualToString:@"com.apple.m4v-video"] || [type isEqualToString:@"public.mpeg-4"]) {
if (self.mp4File) {
// Do nothing
}
else if ([type isEqualToString:@"com.apple.m4a-audio"] || [type isEqualToString:@"com.apple.m4v-video"] || [type isEqualToString:@"public.mpeg-4"]) {
self.mp4File = [[MP42File alloc] initWithURL:self.fileURL error:NULL];
} else {
self.mp4File = [[MP42File alloc] init];