Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
1c2f8fd9ec
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      iOSClient/Main/CCMain.m

+ 5 - 4
iOSClient/Main/CCMain.m

@@ -320,14 +320,16 @@
     
     if ([app.listMainVC count] == 0 || _isRoot) {
         
-        // This is Root home main
+        // This is Root home main add list
         appDelegate.homeMain = self;
         _isRoot = YES;
         _serverUrl = [CCUtility getHomeServerUrlActiveUrl:app.activeUrl];
         appDelegate.directoryUser = [CCUtility getDirectoryActiveUser:app.activeUser activeUrl:app.activeUrl];
-        // add list
         [appDelegate.listMainVC setObject:self forKey:_serverUrl];
         
+        // go Home
+        [self.navigationController popToRootViewControllerAnimated:NO];
+        
         // Crypto Mode
         if ([[CCUtility getKeyChainPasscodeForUUID:[CCUtility getUUID]] length] == 0) {
            
@@ -339,8 +341,7 @@
         }
         _isFolderEncrypted = NO;
 
-        // go Home
-        [self.navigationController popToRootViewControllerAnimated:NO];
+        
         
         // setting Networking
         [[CCNetworking sharedNetworking] settingDelegate:self];