Update uYouPlusSettings.xm

This commit is contained in:
aricloverEXALT 2024-12-04 18:26:46 -06:00 committed by GitHub
parent 0f2b12cf1f
commit fdd0923395
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -333,7 +333,7 @@ extern NSBundle *uYouPlusBundle();
YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
itemWithTitle:LOC(@"ClearCache")
titleDescription:nil
accessibilityIdentifier:nil
accessibilityIdentifier:@"YTLiteSectionItem"
detailTextBlock:^NSString *() {
return GetCacheSize();
}
@ -342,8 +342,8 @@ YTSettingsSectionItem *clearCache = [%c(YTSettingsSectionItem)
NSString *cachePath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).firstObject;
[[NSFileManager defaultManager] removeItemAtPath:cachePath error:nil];
dispatch_async(dispatch_get_main_queue(), ^{
[cell setDetailText:GetCacheSize()];
[[%c(YTToastResponderEvent) eventWithMessage:LOC(@"Done") firstResponder:[self parentResponder]] send];
cell.detailTextLabel.text = GetCacheSize();
[settingsViewController showToastWithMessage:LOC(@"Done")];
});
});
return YES;