소스 검색

Update NCCollectionViewCommon.swift

Fix selection count (in NCRecent)

Signed-off-by: Henrik Storch <henrik.storch@nextcloud.com>
Henry 3 년 전
부모
커밋
8bb29eb610
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 1 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -1250,7 +1250,7 @@ extension NCCollectionViewCommon: UICollectionViewDelegate {
     }
     
     func collectionViewSelectAll() {
-        selectOcId = metadatasSource.map({ $0.ocId })
+        selectOcId = dataSource.metadatas.map({ $0.ocId })
         navigationItem.title = NSLocalizedString("_selected_", comment: "") + " : \(selectOcId.count)" + " / \(dataSource.metadatas.count)"
         collectionView.reloadData()
     }