marinofaggiana 4 gadi atpakaļ
vecāks
revīzija
33cd14dd79

+ 0 - 7
iOSClient/Favorites/NCFavorite.swift

@@ -38,13 +38,6 @@ class NCFavorite: NCCollectionViewCommon  {
         DZNdescription = "_tutorial_favorite_view_"
     }
     
-    // MARK: - NotificationCenter
-    
-    override func reloadDataSource(_ notification: NSNotification) {
-        if self.view?.window == nil { return }
-        reloadDataSource()
-    }
-    
     // MARK: - DataSource + NC Endpoint
     
     override func reloadDataSource() {

+ 0 - 7
iOSClient/FileViewInFolder/NCFileViewInFolder.swift

@@ -63,13 +63,6 @@ class NCFileViewInFolder: NCCollectionViewCommon  {
         self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: NSLocalizedString("_close_", comment: ""), style: .plain, target: self, action: #selector(tapClose(sender:)))       
     }
     
-    // MARK: - NotificationCenter
-
-    override func reloadDataSource(_ notification: NSNotification) {
-        if self.view?.window == nil { return }
-        reloadDataSource()
-    }
-    
     // MARK: - TAP EVENT
 
     @objc func tapClose(sender: Any) {

+ 0 - 5
iOSClient/Files/NCFiles.swift

@@ -60,11 +60,6 @@ class NCFiles: NCCollectionViewCommon  {
         
         super.initializeMain()
     }
-        
-    override func reloadDataSource(_ notification: NSNotification) {
-        if self.view?.window == nil { return }
-        reloadDataSource()
-    }
     
     // MARK: - DataSource + NC Endpoint
     

+ 6 - 1
iOSClient/Main/NCCollectionViewCommon.swift

@@ -242,6 +242,12 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         appDelegate.changeTheming(self, tableView: nil, collectionView: collectionView, form: false)
     }
     
+    @objc func reloadDataSource(_ notification: NSNotification) {
+        if self.view?.window == nil { return }
+        
+        reloadDataSource()
+    }
+    
     @objc func changeStatusFolderE2EE(_ notification: NSNotification) {
         if self.view?.window == nil { return }
         
@@ -923,7 +929,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         autoUploadFileName = NCManageDatabase.sharedInstance.getAccountAutoUploadFileName()
         autoUploadDirectory = NCManageDatabase.sharedInstance.getAccountAutoUploadDirectory(urlBase: appDelegate.urlBase, account: appDelegate.account)
     }
-    @objc func reloadDataSource(_ notification: NSNotification) { }
     @objc func reloadDataSourceNetwork(forced: Bool = false) { }
     @objc func reloadDataSourceNetworkRefreshControl() {
         reloadDataSourceNetwork(forced: true)

+ 0 - 7
iOSClient/Offline/NCOffline.swift

@@ -38,13 +38,6 @@ class NCOffline: NCCollectionViewCommon  {
         DZNdescription = "_tutorial_offline_view_"
     }
     
-    // MARK: - NotificationCenter
-    
-    override func reloadDataSource(_ notification: NSNotification) {
-        if self.view?.window == nil { return }
-        reloadDataSource()
-    }
-    
     // MARK: - DataSource + NC Endpoint
 
     override func reloadDataSource() {

+ 0 - 2
iOSClient/Share/NCShareNetworking.swift

@@ -20,8 +20,6 @@
 //  You should have received a copy of the GNU General Public License
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
- //NotificationCenter.default.postOnMainThread(name: k_notificationCenter_reloadDataSource, userInfo: ["serverUrl":self.metadata.serverUrl])
-
 import Foundation
 import NCCommunication