|
@@ -235,9 +235,13 @@
|
|
|
|
|
|
// Section : Delete files / Clear cache --------------------------------------------------------------
|
|
// Section : Delete files / Clear cache --------------------------------------------------------------
|
|
|
|
|
|
|
|
+ NSString *directory = CCUtility.getDirectoryProviderStorage;
|
|
|
|
+ int64_t totalSize = [[NCUtilityFileSystem shared] getDirectorySizeWithDirectory:directory];
|
|
|
|
+ NSString *footerTitle = [NSString stringWithFormat:@"%@. (%@ %@)", NSLocalizedString(@"_clear_cache_footer_", nil), NSLocalizedString(@"_used_space_", nil), [CCUtility transformedSize:totalSize]];
|
|
|
|
+
|
|
section = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_delete_files_desc_", nil)];
|
|
section = [XLFormSectionDescriptor formSectionWithTitle:NSLocalizedString(@"_delete_files_desc_", nil)];
|
|
[form addFormSection:section];
|
|
[form addFormSection:section];
|
|
- section.footerTitle = NSLocalizedString(@"_clear_cache_footer_", nil);
|
|
|
|
|
|
+ section.footerTitle = footerTitle;
|
|
|
|
|
|
row = [XLFormRowDescriptor formRowDescriptorWithTag:@"deleteoldfiles" rowType:XLFormRowDescriptorTypeSelectorPush title:NSLocalizedString(@"_delete_old_files_", nil)];
|
|
row = [XLFormRowDescriptor formRowDescriptorWithTag:@"deleteoldfiles" rowType:XLFormRowDescriptorTypeSelectorPush title:NSLocalizedString(@"_delete_old_files_", nil)];
|
|
|
|
|