浏览代码

fix share

marinofaggiana 5 年之前
父节点
当前提交
16ef9edc6b
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      Share/NCSelectDestination.m

+ 6 - 1
Share/NCSelectDestination.m

@@ -54,6 +54,8 @@
         activeAccount = tableAccount.account;
         activeUrl = tableAccount.url;
         
+        [[NCNetworking sharedInstance] setupWithAccount:activeAccount delegate:nil];
+        
     } else {
         
         UIAlertController * alert= [UIAlertController alertControllerWithTitle:nil message:NSLocalizedString(@"_no_active_account_", nil) preferredStyle:UIAlertControllerStyleAlert];
@@ -234,10 +236,13 @@
             self.move.enabled = false;
         }
         
-        _loadingFolder = YES;
+        _loadingFolder = NO;
         [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) {