marinofaggiana 4 năm trước cách đây
mục cha
commit
875322ded9
1 tập tin đã thay đổi với 11 bổ sung1 xóa
  1. 11 1
      iOSClient/Main/Collection/NCCollectionViewCommon.swift

+ 11 - 1
iOSClient/Main/Collection/NCCollectionViewCommon.swift

@@ -241,7 +241,17 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         }
     }
     
-    @objc func copyFile(_ notification: NSNotification) { }
+    @objc func copyFile(_ notification: NSNotification) {
+        if self.view?.window == nil { return }
+        
+        if let userInfo = notification.userInfo as NSDictionary? {
+            if let serverUrlTo = userInfo["serverUrlTo"] as? String {
+                if serverUrlTo == self.serverUrl {
+                    self.reloadDataSource()
+                }
+            }
+        }
+    }
     
     @objc func renameFile(_ notification: NSNotification) {
         if self.view?.window == nil { return }