Skip to content

Commit 2fd379f

Browse files
committed
WIP
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
1 parent 265c61c commit 2fd379f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

iOSClient/Trash/Cell/NCTrashCellProtocol.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@ extension NCTrashCellProtocol where Self: UICollectionViewCell {
5757
self.imageItem.image = image
5858
self.labelInfo?.text = (self.labelInfo?.text ?? "") + " · " + NCUtilityFileSystem().transformedSize(tableTrash.size)
5959
}
60-
let nsName = tableTrash.trashbinFileName as NSString
61-
let ext = nsName.pathExtension
62-
let base = nsName.deletingPathExtension
63-
let a11yName = (tableTrash.directory || ext.isEmpty || base.isEmpty) ? tableTrash.trashbinFileName : base + "." + ext
64-
self.accessibilityLabel = a11yName + ", " + (self.labelInfo?.text ?? "")
60+
61+
self.accessibilityLabel = tableTrash.trashbinFileName + ", " + (self.labelInfo?.text ?? "")
6562

6663
if self is NCTrashGridCell {
6764
if labelExtension?.isHidden ?? true {

0 commit comments

Comments
 (0)