소스 검색

VLCLibraryViewController: Use cached folder bar button item (closes #52)

(cherry picked from commit 6bde37bd9b3e2660ceb71f65818e7c847def30ce)
Soomin Lee 7 년 전
부모
커밋
9f34ab4443
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      Sources/VLCLibraryViewController.m

+ 1 - 2
Sources/VLCLibraryViewController.m

@@ -1061,9 +1061,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
 - (IBAction)backToAllItems:(id)sender
 {
     _inFolder = NO;
-    UIBarButtonItem *createFolderItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemOrganize target:self action:@selector(createFolder)];
     NSMutableArray *toolbarItems = [self.toolbarItems mutableCopy];
-    toolbarItems[2] = createFolderItem;
+    toolbarItems[2] = _createFolderBarButtonItem;
     self.toolbarItems = toolbarItems;
     [self setLibraryMode:_previousLibraryMode];
     if (!self.isEditing) {