From 175abbd5f71aea38501d28d779930eff35329137 Mon Sep 17 00:00:00 2001 From: "aricloverGitHub (INACTIVE)" <78001398+arichornlover@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:54:31 -0600 Subject: [PATCH] Update uYouPlusSettings.xm --- Sources/uYouPlusSettings.xm | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Sources/uYouPlusSettings.xm b/Sources/uYouPlusSettings.xm index 4d43383..07b3345 100644 --- a/Sources/uYouPlusSettings.xm +++ b/Sources/uYouPlusSettings.xm @@ -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")