marinofaggiana 4 년 전
부모
커밋
d398c9e4e4
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      iOSClient/Viewer/NCViewerProviderContextMenu.swift

+ 5 - 0
iOSClient/Viewer/NCViewerProviderContextMenu.swift

@@ -110,6 +110,11 @@ class NCViewerProviderContextMenu: UIViewController  {
                 }
             }
             
+            // AUTO DOWNLOAD IMAGE
+            if !CCUtility.fileProviderStorageExists(metadata.ocId, fileNameView: metadata.fileNameView) && metadata.typeFile == NCBrandGlobal.shared.metadataTypeFileImage && CCUtility.getAutomaticDownloadImage() {
+                NCOperationQueue.shared.download(metadata: metadata, selector: "", setFavorite: false)
+            }
+            
             // AUTO DOWNLOAD LIVE PHOTO
             if let metadataLivePhoto = self.metadataLivePhoto {
                 if !CCUtility.fileProviderStorageExists(metadataLivePhoto.ocId, fileNameView: metadataLivePhoto.fileNameView) {