mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Update uYouPlusSettings.xm
This commit is contained in:
parent
2e6495aa04
commit
175abbd5f7
1 changed files with 1 additions and 12 deletions
|
|
@ -331,7 +331,7 @@ extern NSBundle *uYouPlusBundle();
|
|||
[sectionItems addObject:appIcon];
|
||||
|
||||
YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
|
||||
itemWithTitle:"Clear Cache"
|
||||
itemWithTitle:@"Clear Cache"
|
||||
titleDescription:nil
|
||||
accessibilityIdentifier:nil
|
||||
detailTextBlock:^NSString *() {
|
||||
|
|
@ -351,17 +351,6 @@ extern NSBundle *uYouPlusBundle();
|
|||
];
|
||||
[sectionItems addObject:clearCache];
|
||||
|
||||
[%c(YTSettingsSectionItem) itemWithTitle:@"Clear Cache" titleDescription:nil accessibilityIdentifier:nil detailTextBlock:^NSString *() { return GetCacheSize(); } selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
|
||||
[[NSFileManager defaultManager] removeItemAtPath:cachePath error:nil];
|
||||
});
|
||||
|
||||
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Done") firstResponder:[self parentResponder]] send];
|
||||
|
||||
return YES;
|
||||
}],
|
||||
|
||||
YTSettingsSectionItem *clearNotifications = [%c(YTSettingsSectionItem)
|
||||
itemWithTitle:LOC(@"CLEAR_NOTIFICATIONS")
|
||||
titleDescription:LOC(@"CLEAR_NOTIFICATIONS_DESC")
|
||||
|
|
|
|||
Loading…
Reference in a new issue