marinofaggiana 5 years ago
parent
commit
da99d2a476
1 changed files with 10 additions and 10 deletions
  1. 10 10
      iOSClient/Media/NCMedia.swift

+ 10 - 10
iOSClient/Media/NCMedia.swift

@@ -306,24 +306,24 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
            
             actions.append(
                 NCMenuAction(
-                    title: NSLocalizedString("_delete_", comment: ""),
-                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "trash"), width: 50, height: 50, color: .red),
+                    title: NSLocalizedString("_deselect_", comment: ""),
+                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "cancel"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
                     action: { menuAction in
-                        self.deleteItems()
+                        self.isEditMode = false
+                        self.selectocId.removeAll()
+                        self.collectionView?.reloadDataThenPerform {
+                            self.downloadThumbnail()
+                        }
                     }
                 )
             )
             
             actions.append(
                 NCMenuAction(
-                    title: NSLocalizedString("_cancel_", comment: ""),
-                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "cancel"), width: 50, height: 50, color: NCBrandColor.sharedInstance.icon),
+                    title: NSLocalizedString("_delete_", comment: ""),
+                    icon: CCGraphics.changeThemingColorImage(UIImage(named: "trash"), width: 50, height: 50, color: .red),
                     action: { menuAction in
-                        self.isEditMode = false
-                        self.selectocId.removeAll()
-                        self.collectionView?.reloadDataThenPerform {
-                            self.downloadThumbnail()
-                        }
+                        self.deleteItems()
                     }
                 )
             )