Create application/directory for subdir, if metadata or permissions are applied.
[pithos-ios] / Classes / SettingsViewController.m
index c9b83c4..71201e1 100755 (executable)
     } else {
         return 1;
     }
-    //} else {
-    //    id <SettingsPlugin> plugin = [[SettingsPluginHandler plugins] objectAtIndex:section - 1];
-    //    return [plugin tableView:tableView numberOfRowsInSection:section];
-    //}
+    /*} else {
+        id <SettingsPlugin> plugin = [[SettingsPluginHandler plugins] objectAtIndex:section - 1];
+        return [plugin tableView:tableView numberOfRowsInSection:section];
+    }*/
 }
 
 
     } else if (indexPath.section == aboutSection) {
         cell.textLabel.text = @"About This App";
         cell.detailTextLabel.text = @"";
-        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+        cell.accessoryType = UITableViewCellAccessoryNone;
     } else {
         id <SettingsPlugin> plugin = [[SettingsPluginHandler plugins] objectAtIndex:indexPath.section - 1];
         [plugin setSettingsViewController:self];
         [self.navigationController pushViewController:vc animated:YES];
         [vc release];
     } else if (indexPath.section == aboutSection) {
-        AboutViewController *vc = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil];
+        //This currently is a link to the pithos docs page. It might change in the future to use the AboutViewController;
+        NSString *aboutURLString = [[NSUserDefaults standardUserDefaults] objectForKey:@"aboutURL"];
+        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:aboutURLString]];
+        [self.tableView deselectRowAtIndexPath:indexPath animated:YES];
+        /*AboutViewController *vc = [[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil];
         [self.navigationController pushViewController:vc animated:YES];
-        [vc release];
+        [vc release];*/
     } else {
         id <SettingsPlugin> plugin = [[SettingsPluginHandler plugins] objectAtIndex:indexPath.section - 1];
         return [plugin tableView:tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath];