Explorar el Código

fix bug which lead to the impression that the media library was empty even though it's full

Felix Paul Kühne hace 12 años
padre
commit
7afb16c203
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      AspenProject/VLCPlaylistViewController.m

+ 2 - 1
AspenProject/VLCPlaylistViewController.m

@@ -94,7 +94,6 @@
     [[NSFileManager defaultManager] removeItemAtPath:[[NSURL URLWithString:mediaObject.url] path] error:nil];
 
     [self updateViewContents];
-    [self _displayEmptyLibraryViewIfNeeded];
 }
 
 - (void)_displayEmptyLibraryViewIfNeeded
@@ -139,6 +138,8 @@
         [self.tableView reloadData];
     else
         [self.gridView reloadData];
+
+    [self _displayEmptyLibraryViewIfNeeded];
 }
 
 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView