Marino Faggiana 6 жил өмнө
parent
commit
4346e9ebec

+ 1 - 21
iOSClient/Settings/CCAdvanced.m

@@ -121,7 +121,7 @@
     section.footerTitle = NSLocalizedString(@"_clear_cache_footer_", nil);
 
     // Clear cache
-    row = [XLFormRowDescriptor formRowDescriptorWithTag:@"azzeracache" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_clear_cache_no_size_", nil)];
+    row = [XLFormRowDescriptor formRowDescriptorWithTag:@"azzeracache" rowType:XLFormRowDescriptorTypeButton title:NSLocalizedString(@"_clear_cache_", nil)];
     [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
     [row.cellConfig setObject:[UIColor blackColor] forKey:@"textLabel.textColor"];
     [row.cellConfig setObject:@(NSTextAlignmentLeft) forKey:@"textLabel.textAlignment"];
@@ -409,26 +409,6 @@
     [self presentViewController:alertController animated:YES completion:nil];
 }
 
-/*
-- (void)recalculateSize
-{
-    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
-        
-        self.form.delegate = nil;
-        
-        XLFormRowDescriptor *rowAzzeraCache = [self.form formRowWithTag:@"azzeracache"];
-        
-        NSString *size = [CCUtility transformedSize:[[self getUserDirectorySize] longValue]];
-        rowAzzeraCache.title = [NSString stringWithFormat:NSLocalizedString(@"_clear_cache_", nil), size];
-        //rowAzzeraCache.title = NSLocalizedString(@"_clear_cache_no_size_", nil);
-        
-        [self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
-        
-        self.form.delegate = self;
-    });
-}
-*/
-
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark == Exit Nextcloud ==
 #pragma --------------------------------------------------------------------------------------------

+ 1 - 2
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -136,8 +136,7 @@
 "_app_version_"                 = "Application version";
 "_app_in_use_"                  = "Application in use";
 "_contact_by_email_"            = "Contact us by email";
-"_clear_cache_"                 = "Clear cache (%@ used)";
-"_clear_cache_no_size_"         = "Clear cache";
+"_clear_cache_"                 = "Clear cache";
 "_clear_cache_footer_"          = "Clear downloaded and offline files";
 "_exit_"                        = "Reset application";
 "_exit_footer_"                 = "Remove all accounts and local data";