Selaa lähdekoodia

hide hud loading

Marino Faggiana 7 vuotta sitten
vanhempi
commit
846a7c84db
1 muutettua tiedostoa jossa 10 lisäystä ja 4 poistoa
  1. 10 4
      iOSClient/Main/CCMain.m

+ 10 - 4
iOSClient/Main/CCMain.m

@@ -83,6 +83,8 @@
     // Login
     CCLoginWeb *_loginWeb;
     CCLogin *_loginVC;
+    
+    BOOL _loadingFolder;
 }
 @end
 
@@ -1862,7 +1864,8 @@
     // verify active user
     tableAccount *record = [[NCManageDatabase sharedInstance] getAccountActive];
     
-    [_hud hideHud];
+    //[_hud hideHud];
+    _loadingFolder = NO;
 
     [_refreshControl endRefreshing];
         
@@ -1977,7 +1980,8 @@
         // Enable change user
         [_ImageTitleHomeCryptoCloud setUserInteractionEnabled:YES];
                 
-        [_hud hideHud];
+        //[_hud hideHud];
+        _loadingFolder = NO;
     }
 }
 
@@ -2004,8 +2008,10 @@
         return;
     }
     
-    if (_refreshControl.isRefreshing == NO && [_sectionDataSource.allRecordsDataSource count] == 0)
-        [_hud visibleIndeterminateHud];
+    //if (_refreshControl.isRefreshing == NO && [_sectionDataSource.allRecordsDataSource count] == 0)
+    //    [_hud visibleIndeterminateHud];
+    
+    _loadingFolder = YES;
     
     tableDirectory *directory = [[NCManageDatabase sharedInstance] getTableDirectoryWithPredicate:[NSPredicate predicateWithFormat:@"serverUrl = %@", serverUrl]];