marinofaggiana 3 лет назад
Родитель
Сommit
6cfd24aa4e

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -802,6 +802,7 @@
 "_overwrite_original_"      = "Overwrite original";
 "_save_as_copy_"            = "Save as copy";
 "_discard_changes_"         = "Close and discard changes";
+"_message_disable_overwrite_livephoto_" = "This image it's a Live Photo, the overwrite will not possible";
 
 // ----------------------------------------------------------------------------------------------------------------------------------
 // IM

+ 4 - 0
iOSClient/Viewer/NCViewerQuickLook/NCViewerQuickLook.swift

@@ -88,6 +88,10 @@ import QuickLook
                 }
             })
         }
+        
+        if editingMode && metadata?.livePhoto == true {
+            NCContentPresenter.shared.messageNotification("", description: "_message_disable_overwrite_livephoto_", delay: NCGlobal.shared.dismissAfterSecond, type: NCContentPresenter.messageType.info, errorCode: NCGlobal.shared.errorCharactersForbidden, forced: true)
+        }
     }
     
     @objc func dismissPreviewController() {