瀏覽代碼

clear code

Marino Faggiana 6 年之前
父節點
當前提交
d1f78bdf9f
共有 1 個文件被更改,包括 2 次插入2 次删除
  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) {
     [[NCMainCommon sharedInstance ] deleteFileWithFilesID:filesID e2ee:false serverUrl:@"" folderFileID:@"" completion:^(NSInteger errorCode, NSString *message) {
         [self reloadDatasource];
         [self reloadDatasource];
-        [self editingModeNO];
     }];
     }];
+    
+    [self editingModeNO];
 }
 }
 
 
 - (void)deleteSelectedFiles
 - (void)deleteSelectedFiles
@@ -421,7 +422,6 @@
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil)
     [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_cancel_", nil)
                                                          style:UIAlertActionStyleCancel
                                                          style:UIAlertActionStyleCancel
                                                        handler:^(UIAlertAction *action) {
                                                        handler:^(UIAlertAction *action) {
-                                                           [alertController dismissViewControllerAnimated:YES completion:nil];
                                                        }]];
                                                        }]];
     
     
     alertController.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.firstObject;
     alertController.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.firstObject;