Browse Source

clear code

Marino Faggiana 6 năm trước cách đây
mục cha
commit
d1f78bdf9f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      iOSClient/Photos/CCPhotos.m

+ 2 - 2
iOSClient/Photos/CCPhotos.m

@@ -401,8 +401,9 @@
 {
     [[NCMainCommon sharedInstance ] deleteFileWithFilesID:filesID e2ee:false serverUrl:@"" folderFileID:@"" completion:^(NSInteger errorCode, NSString *message) {
         [self reloadDatasource];
-        [self editingModeNO];
     }];
+    
+    [self editingModeNO];
 }
 
 - (void)deleteSelectedFiles
@@ -421,7 +422,6 @@
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil)
                                                          style:UIAlertActionStyleCancel
                                                        handler:^(UIAlertAction *action) {
-                                                           [alertController dismissViewControllerAnimated:YES completion:nil];
                                                        }]];
     
     alertController.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.firstObject;