Browse Source

Delete files / Clear cache

marinofaggiana 3 years ago
parent
commit
a6767d8d72
1 changed files with 1 additions and 10 deletions
  1. 1 10
      iOSClient/Settings/CCAdvanced.m

+ 1 - 10
iOSClient/Settings/CCAdvanced.m

@@ -236,16 +236,10 @@
     
     // Section : Delete files / Clear cache --------------------------------------------------------------
 
-    section = [XLFormSectionDescriptor formSection];
-    [form addFormSection:section];
-    section.footerTitle = NSLocalizedString(@"_clear_cache_footer_", nil);
-    
-    /*
     sectionSize = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_delete_files_desc_", nil)];
     [form addFormSection:sectionSize];
     sectionSize.footerTitle = NSLocalizedString(@"_clear_cache_footer_", nil);
 
-    
     row = [XLFormRowDescriptor formRowDescriptorWithTag:@"deleteoldfiles" rowType:XLFormRowDescriptorTypeSelectorPush title:NSLocalizedString(@"_delete_old_files_", nil)];
     
     switch (CCUtility.getCleanUpDay) {
@@ -288,8 +282,6 @@
                             //[XLFormOptionsObject formOptionsObjectWithValue:@(1) displayText:NSLocalizedString(@"_1_day_", nil)],
                             ];
     [sectionSize addFormRow:row];
-    */
-    
     
     // Clear cache
     row = [XLFormRowDescriptor formRowDescriptorWithTag:@"azzeracache" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_clear_cache_", nil)];
@@ -299,8 +291,7 @@
     [row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
     [row.cellConfig setObject:[[UIImage imageNamed:@"trash"] imageWithColor:NCBrandColor.shared.gray size:25] forKey:@"imageView.image"];
     row.action.formSelector = @selector(clearCacheRequest:);
-    //[sectionSize addFormRow:row];
-    [section addFormRow:row];
+    [sectionSize addFormRow:row];
     
     // Section EXIT --------------------------------------------------------