Explorar o código

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

Felix Paul Kühne %!s(int64=12) %!d(string=hai) anos
pai
achega
7afb16c203
Modificáronse 1 ficheiros con 2 adicións e 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