Skip to content

Commit

Permalink
cod
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Jul 4, 2024
1 parent 6f841e9 commit 32743b6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import NextcloudKit

extension NCCollectionViewCommon: UICollectionViewDelegate {
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
guard let metadata = dataSource.cellForItemAt(indexPath: indexPath) else { return }
guard let metadata = dataSource.cellForItemAt(indexPath: indexPath), !metadata.isInvalidated else { return }

if isEditMode {
if let index = selectOcId.firstIndex(of: metadata.ocId) {
Expand Down Expand Up @@ -55,9 +55,7 @@ extension NCCollectionViewCommon: UICollectionViewDelegate {
}

if metadata.directory {

pushMetadata(metadata)

} else {
let imageIcon = UIImage(contentsOfFile: utilityFileSystem.getDirectoryProviderStorageIconOcId(metadata.ocId, etag: metadata.etag))

Expand Down

0 comments on commit 32743b6

Please sign in to comment.