瀏覽代碼

do not remove .ico

Marino Faggiana 8 年之前
父節點
當前提交
707d30e693
共有 1 個文件被更改,包括 5 次插入8 次删除
  1. 5 8
      iOSClient/Settings/CCSettings.m

+ 5 - 8
iOSClient/Settings/CCSettings.m

@@ -904,14 +904,11 @@
     
     while (file = [enumerator nextObject]) {
         
-        /*
-        if (removeICO == NO) {
-            
-            NSString *ext = [[file pathExtension] lowercaseString];
-            
-            if ([ext isEqualToString:@"ico"] && [file rangeOfString:@"ID_UPLOAD_"].location == NSNotFound) continue;
-        }
-        */
+        NSString *ext = [[file pathExtension] lowercaseString];
+        
+        // Do not remove ICO
+        if ([ext isEqualToString:@"ico"])
+            continue;
         
         [[NSFileManager defaultManager] removeItemAtPath:[NSString stringWithFormat:@"%@/%@", dirIniziale, file] error:nil];
     }