فهرست منبع

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

Felix Paul Kühne 12 سال پیش
والد
کامیت
7afb16c203
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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