marinofaggiana há 6 anos atrás
pai
commit
8fab0e6a3c
1 ficheiros alterados com 3 adições e 4 exclusões
  1. 3 4
      iOSClient/Media/NCMedia.swift

+ 3 - 4
iOSClient/Media/NCMedia.swift

@@ -119,10 +119,6 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
         autoUploadFileName = NCManageDatabase.sharedInstance.getAccountAutoUploadFileName()
         autoUploadDirectory = NCManageDatabase.sharedInstance.getAccountAutoUploadDirectory(appDelegate.activeUrl)
         
-        // clear variable
-        isDistantPast = false
-        readRetry = 0
-        
         loadNetworkDatasource()
         collectionViewReloadDataSource()
     }
@@ -404,6 +400,9 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
     
     @objc func loadNetworkDatasource() {
         
+        isDistantPast = false
+        readRetry = 0
+        
         if appDelegate.activeAccount.count == 0 {
             return
         }