Эх сурвалжийг харах

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 жил өмнө
parent
commit
d292ccf247

+ 1 - 4
iOSClient/Menu/NCViewer+Menu.swift

@@ -244,15 +244,12 @@ extension NCViewer {
         // MODIFY
         //
         if #available(iOS 13.0, *) {
-            if !isFolderEncrypted && metadata.contentType != "image/gif" && (metadata.contentType == "com.adobe.pdf" || metadata.contentType == "application/pdf" || metadata.classFile == NCCommunicationCommon.typeClassFile.image.rawValue || metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue) {
+            if !isFolderEncrypted && metadata.contentType != "image/gif" && (metadata.contentType == "com.adobe.pdf" || metadata.contentType == "application/pdf" || metadata.classFile == NCCommunicationCommon.typeClassFile.image.rawValue) {
                 actions.append(
                     NCMenuAction(
                         title: NSLocalizedString("_modify_", comment: ""),
                         icon: NCUtility.shared.loadImage(named: "pencil.tip.crop.circle"),
                         action: { _ in
-                            if metadata.classFile == NCCommunicationCommon.typeClassFile.video.rawValue {
-                                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterPauseMedia)
-                            }
                             NCFunctionCenter.shared.openDownload(metadata: metadata, selector: NCGlobal.shared.selectorLoadFileQuickLook)
                         }
                     )

+ 2 - 0
iOSClient/Viewer/NCViewerMedia/NCViewerMediaPage.swift

@@ -236,11 +236,13 @@ class NCViewerMediaPage: UIViewController {
 
     @objc func uploadStartFile(_ notification: NSNotification) {
 
+        /*
         guard let userInfo = notification.userInfo as NSDictionary?,
               let serverUrl = userInfo["serverUrl"] as? String,
               let fileName = userInfo["fileName"] as? String,
               let sessionSelector = userInfo["sessionSelector"] as? String
         else { return }
+        */
     }
 
     @objc func uploadedFile(_ notification: NSNotification) {