Commit 71afd722 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Local Network: minor cleanup

parent 5a9631ba
......@@ -284,6 +284,7 @@
[self.tableView reloadData];
} else if (request == _FTPDownloadRequest) {
APLog(@"download complete!");
_FTPDownloadRequest = nil;
} else
APLog(@"unknown request %@ completed", request);
}
......@@ -295,6 +296,7 @@
- (void)requestFailed:(WRRequest *)request
{
_FTPDownloadRequest = nil;
APLog(@"request %@ failed with error %i message '%@'", request, request.error.errorCode, request.error.message);
}
......
......@@ -189,12 +189,6 @@
[navCon loadTheme];
navCon.navigationBarHidden = NO;
if (indexPath.row != 0) { // FTP Connect To Server Special Item
if ([_ftpServices[indexPath.row] hostName].length > 0)
_loginViewController.serverAddressField.text = [NSString stringWithFormat:@"ftp://%@", [_ftpServices[indexPath.row] hostName]];
} else
_loginViewController.serverAddressField.text = @"";
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
navCon.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:navCon animated:YES];
......@@ -206,6 +200,13 @@
}
} else
[self.navigationController pushViewController:_loginViewController animated:YES];
if (indexPath.row != 0) { // FTP Connect To Server Special Item
if ([_ftpServices[indexPath.row] hostName].length > 0)
_loginViewController.serverAddressField.text = [NSString stringWithFormat:@"ftp://%@", [_ftpServices[indexPath.row] hostName]];
} else
_loginViewController.serverAddressField.text = @"";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment