marinofaggiana 4 năm trước cách đây
mục cha
commit
51242a5f41
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      iOSClient/Main/NCCollectionViewCommon.swift

+ 4 - 1
iOSClient/Main/NCCollectionViewCommon.swift

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