Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-09-29 18:34:03 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-09-29 18:34:03 +0300
commit77cd077bc77640edaa7935a7360a12803ad972a6 (patch)
tree3becfc0abc7138a382f226c6b7890b2683aab042 /iOSClient/Networking
parentfc88fe433c80b3af4bb3909230489da67aa762f7 (diff)
coding
Diffstat (limited to 'iOSClient/Networking')
-rw-r--r--iOSClient/Networking/NCNetworkingNotificationCenter.swift20
1 files changed, 13 insertions, 7 deletions
diff --git a/iOSClient/Networking/NCNetworkingNotificationCenter.swift b/iOSClient/Networking/NCNetworkingNotificationCenter.swift
index 0817c61ee..31eb3cdd5 100644
--- a/iOSClient/Networking/NCNetworkingNotificationCenter.swift
+++ b/iOSClient/Networking/NCNetworkingNotificationCenter.swift
@@ -77,13 +77,7 @@ import Foundation
} else {
- if self.appDelegate.activeViewController is NCFiles {
- (self.appDelegate.activeViewController as! NCFiles).segue(metadata: metadata)
- } else if self.appDelegate.activeViewController is NCFavorite {
- (self.appDelegate.activeViewController as! NCFavorite).segue(metadata: metadata)
- } else if self.appDelegate.activeViewController is NCOffline {
- (self.appDelegate.activeViewController as! NCOffline).segue(metadata: metadata)
- }
+ segueMetadata(metadata)
}
}
@@ -180,6 +174,18 @@ import Foundation
}
}
+ @objc func segueMetadata(_ metadata: tableMetadata) {
+ if self.appDelegate.activeViewController is NCFiles {
+ (self.appDelegate.activeViewController as! NCFiles).segue(metadata: metadata)
+ } else if self.appDelegate.activeViewController is NCFavorite {
+ (self.appDelegate.activeViewController as! NCFavorite).segue(metadata: metadata)
+ } else if self.appDelegate.activeViewController is NCOffline {
+ (self.appDelegate.activeViewController as! NCOffline).segue(metadata: metadata)
+ } else if self.appDelegate.activeViewController is NCRecent {
+ (self.appDelegate.activeViewController as! NCRecent).segue(metadata: metadata)
+ }
+ }
+
//MARK: - Upload
@objc func uploadedFile(_ notification: NSNotification) {