marinofaggiana 4 years ago
parent
commit
51242a5f41
1 changed files with 4 additions and 1 deletions
  1. 4 1
      iOSClient/Main/NCCollectionViewCommon.swift

+ 4 - 1
iOSClient/Main/NCCollectionViewCommon.swift

@@ -177,7 +177,10 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         }
         }
         
         
         setNavigationItem()
         setNavigationItem()
-        reloadDataSource()
+        
+        if dataSource.metadatas.count == 0 {
+            reloadDataSource()
+        } 
     }
     }
         
         
     override func viewDidAppear(_ animated: Bool) {
     override func viewDidAppear(_ animated: Bool) {