diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-10-16 19:39:07 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-10-16 19:39:07 +0300 |
commit | 54998078b24d8d6f86b4d71f4294ace5d575fd46 (patch) | |
tree | 840c047c459d0b656f3beab8a2b954f074911675 /iOSClient/Diagnostics | |
parent | da8f9c872d8c12dded596ff4f4260f2027592b79 (diff) |
coding
Diffstat (limited to 'iOSClient/Diagnostics')
-rw-r--r-- | iOSClient/Diagnostics/NCCapabilitiesViewController.swift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/iOSClient/Diagnostics/NCCapabilitiesViewController.swift b/iOSClient/Diagnostics/NCCapabilitiesViewController.swift index c6f51882d..d9c65c728 100644 --- a/iOSClient/Diagnostics/NCCapabilitiesViewController.swift +++ b/iOSClient/Diagnostics/NCCapabilitiesViewController.swift @@ -195,7 +195,12 @@ class NCCapabilitiesViewController: UIViewController, UIDocumentInteractionContr let fileURL = NSURL.fileURL(withPath: NSTemporaryDirectory(), isDirectory: true).appendingPathComponent("capabilities.txt") do { try self.capabilitiesText.write(to: fileURL, atomically: true, encoding: .utf8) - NCNetworkingNotificationCenter.shared.openIn(fileURL: fileURL, selector: nil) + + if let view = self.appDelegate.window?.rootViewController?.view { + self.documentController = UIDocumentInteractionController(url: fileURL) + self.documentController?.delegate = self + self.documentController?.presentOptionsMenu(from: view.frame, in: view, animated: true) + } } catch { } } } |