mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 16:02:00 +00:00
Update uYouPlusSettings.xm
This commit is contained in:
parent
0f2b12cf1f
commit
fdd0923395
1 changed files with 19 additions and 19 deletions
|
|
@ -333,7 +333,7 @@ extern NSBundle *uYouPlusBundle();
|
||||||
YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
|
YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
|
||||||
itemWithTitle:LOC(@"ClearCache")
|
itemWithTitle:LOC(@"ClearCache")
|
||||||
titleDescription:nil
|
titleDescription:nil
|
||||||
accessibilityIdentifier:nil
|
accessibilityIdentifier:@"YTLiteSectionItem"
|
||||||
detailTextBlock:^NSString *() {
|
detailTextBlock:^NSString *() {
|
||||||
return GetCacheSize();
|
return GetCacheSize();
|
||||||
}
|
}
|
||||||
|
|
@ -342,8 +342,8 @@ YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
|
||||||
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
|
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
|
||||||
[[NSFileManager defaultManager] removeItemAtPath:cachePath error:nil];
|
[[NSFileManager defaultManager] removeItemAtPath:cachePath error:nil];
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[cell setDetailText:GetCacheSize()];
|
cell.detailTextLabel.text = GetCacheSize();
|
||||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Done") firstResponder:[self parentResponder]] send];
|
[settingsViewController showToastWithMessage:LOC(@"Done")];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return YES;
|
return YES;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue