marinofaggiana 4 年之前
父節點
當前提交
37c6feb65f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

+ 3 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

@@ -215,7 +215,9 @@ class NCViewerImagePageContainer: UIViewController, UIGestureRecognizerDelegate
                 let fileNameMov = URL(fileURLWithPath: CCUtility.getDirectoryProviderStorageOcId(metadataMov.ocId, fileNameView: metadataMov.fileNameView)!)
                 
                 NCLivePhoto.generate(from: fileNameImage, videoURL: fileNameMov, progress: { progress in
-                    self.progressView.progress = Float(progress)
+                    DispatchQueue.main.async {
+                        self.progressView.progress = Float(progress)
+                    }
                 }, completion: { livePhoto, resources in
                     self.progressView.progress = 0
                     if resources != nil {