浏览代码

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 3 年之前
父节点
当前提交
13064234ae
共有 1 个文件被更改,包括 5 次插入9 次删除
  1. 5 9
      iOSClient/Files/NCFiles.swift

+ 5 - 9
iOSClient/Files/NCFiles.swift

@@ -56,22 +56,18 @@ class NCFiles: NCCollectionViewCommon {
     // MARK: - NotificationCenter
     // MARK: - NotificationCenter
 
 
     override func initialize(_ notification: NSNotification) {
     override func initialize(_ notification: NSNotification) {
-
         if isRoot {
         if isRoot {
             serverUrl = NCUtilityFileSystem.shared.getHomeServer(account: appDelegate.account)
             serverUrl = NCUtilityFileSystem.shared.getHomeServer(account: appDelegate.account)
             titleCurrentFolder = getNavigationTitle()
             titleCurrentFolder = getNavigationTitle()
         }
         }
-
-        // ----
         super.initialize(notification)
         super.initialize(notification)
-        // ----
 
 
-        if let userInfo = notification.userInfo as NSDictionary?, userInfo["atStart"] as? Int != nil {
-            print("Initialize at Start")
-        } else {
-            reloadDataSource(forced: false)
-            reloadDataSourceNetwork()
+        if let userInfo = notification.userInfo as NSDictionary?, userInfo["atStart"] as? Int == 1 {
+            return
         }
         }
+
+        reloadDataSource(forced: false)
+        reloadDataSourceNetwork()
     }
     }
 
 
     // MARK: - DataSource + NC Endpoint
     // MARK: - DataSource + NC Endpoint