Преглед на файлове

app delegate: fix regression preventing the display of files which were added while the apps is not running

This happens frequently when syncing media via iTunes. Issue introduced in 4bb4d2
Felix Paul Kühne преди 10 години
родител
ревизия
649a2ca1cb
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Sources/VLCAppDelegate.m

+ 1 - 1
Sources/VLCAppDelegate.m

@@ -301,7 +301,7 @@
 - (void)updateMediaList
 {
     NSString *directoryPath = [self directoryPath];
-    NSMutableArray *foundFiles = [NSMutableArray arrayWithObject:@""];
+    NSMutableArray *foundFiles = [NSMutableArray arrayWithArray:[[NSFileManager defaultManager] contentsOfDirectoryAtPath:directoryPath error:nil]];
     NSMutableArray *filePaths = [NSMutableArray array];
     NSURL *fileURL;
     while (foundFiles.count) {