marinofaggiana 5 anni fa
parent
commit
16ef9edc6b
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      Share/NCSelectDestination.m

+ 6 - 1
Share/NCSelectDestination.m

@@ -54,6 +54,8 @@
         activeAccount = tableAccount.account;
         activeAccount = tableAccount.account;
         activeUrl = tableAccount.url;
         activeUrl = tableAccount.url;
         
         
+        [[NCNetworking sharedInstance] setupWithAccount:activeAccount delegate:nil];
+        
     } else {
     } else {
         
         
         UIAlertController * alert= [UIAlertController alertControllerWithTitle:nil message:NSLocalizedString(@"_no_active_account_", nil) preferredStyle:UIAlertControllerStyleAlert];
         UIAlertController * alert= [UIAlertController alertControllerWithTitle:nil message:NSLocalizedString(@"_no_active_account_", nil) preferredStyle:UIAlertControllerStyleAlert];
@@ -234,10 +236,13 @@
             self.move.enabled = false;
             self.move.enabled = false;
         }
         }
         
         
-        _loadingFolder = YES;
+        _loadingFolder = NO;
         [self.tableView reloadData];
         [self.tableView reloadData];
     }];
     }];
     
     
+    _loadingFolder = YES;
+    [self.tableView reloadData];
+    
     /*
     /*
     [[NCCommunication sharedInstance] readFileOrFolderWithServerUrlFileName:_serverUrl depth:@"1" showHiddenFiles:[CCUtility getShowHiddenFiles] account:activeAccount completionHandler:^(NSString *account, NSArray<NCFile *> *files, NSInteger errorCode, NSString *errorDecription) {
     [[NCCommunication sharedInstance] readFileOrFolderWithServerUrlFileName:_serverUrl depth:@"1" showHiddenFiles:[CCUtility getShowHiddenFiles] account:activeAccount completionHandler:^(NSString *account, NSArray<NCFile *> *files, NSInteger errorCode, NSString *errorDecription) {