Browse Source

Update NCActionCenter.swift

Marino Faggiana 1 năm trước cách đây
mục cha
commit
e89423f757
1 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 3 4
      iOSClient/Main/NCActionCenter.swift

+ 3 - 4
iOSClient/Main/NCActionCenter.swift

@@ -216,10 +216,6 @@ class NCActionCenter: NSObject, UIDocumentInteractionControllerDelegate, NCSelec
                 if !metadata.isSharable, let idx = pages.firstIndex(of: .sharing) {
                     pages.remove(at: idx)
                 }
-
-                shareViewController?.metadata = metadata
-                shareViewController?.pages = pages
-
                 (pages, page) = NCApplicationHandle().filterPages(pages: pages, page: page, metadata: metadata)
 
                 if pages.contains(page) {
@@ -230,6 +226,9 @@ class NCActionCenter: NSObject, UIDocumentInteractionControllerDelegate, NCSelec
                     return
                 }
 
+                shareViewController?.pages = pages
+                shareViewController?.metadata = metadata
+
                 shareNavigationController?.modalPresentationStyle = .formSheet
                 if let shareNavigationController = shareNavigationController {
                     viewController.present(shareNavigationController, animated: true, completion: nil)