marinofaggiana 4 жил өмнө
parent
commit
8d4e914331

+ 1 - 1
iOSClient/Favorites/NCFavorite.swift

@@ -50,7 +50,7 @@ class NCFavorite: NCCollectionViewCommon  {
         super.viewWillAppear(animated)
     }
     
-    // MARK: - NC API & Algorithm
+    // MARK: - DataSource + NC Endpoint
     
     override func reloadDataSource() {
         super.reloadDataSource()

+ 5 - 5
iOSClient/Main/Collection/NCCollectionViewCommon.swift

@@ -157,10 +157,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         
         self.navigationItem.title = titleCurrentFolder
                 
-        // get auto upload folder
-        autoUploadFileName = NCManageDatabase.sharedInstance.getAccountAutoUploadFileName()
-        autoUploadDirectory = NCManageDatabase.sharedInstance.getAccountAutoUploadDirectory(urlBase: appDelegate.urlBase, account: appDelegate.account)
-        
         (layout, _, _, groupBy, _, titleButton, itemForLine) = NCUtility.shared.getLayoutForView(key: layoutKey)
         gridLayout.itemForLine = CGFloat(itemForLine)
         
@@ -853,11 +849,15 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         }
     }
     
-    // MARK: - NC API & Algorithm
+    // MARK: - DataSource + NC Endpoint
     
     @objc func reloadDataSource() {
         let directory = NCManageDatabase.sharedInstance.getTableDirectory(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", appDelegate.account, serverUrl))
         richWorkspaceText = directory?.richWorkspace
+        
+        // get auto upload folder
+        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) { }

+ 1 - 1
iOSClient/Offline/NCOffline.swift

@@ -49,7 +49,7 @@ class NCOffline: NCCollectionViewCommon  {
         super.viewWillAppear(animated)
     }
     
-    // MARK: - NC API & Algorithm
+    // MARK: - DataSource + NC Endpoint
 
     override func reloadDataSource() {
         super.reloadDataSource()

+ 1 - 1
iOSClient/Transfers/NCTransfers.swift

@@ -203,7 +203,7 @@ class NCTransfers: NCCollectionViewCommon  {
         return CGSize(width: collectionView.frame.width, height: 0)
     }
     
-    // MARK: - NC API & Algorithm
+    // MARK: - DataSource + NC Endpoint
 
     override func reloadDataSource() {
         super.reloadDataSource()