Update uYouPlusSettings.xm

This commit is contained in:
aricloverEXALT 2025-02-14 21:48:15 -06:00 committed by GitHub
parent a1402b49d1
commit c40c81ef8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -360,18 +360,17 @@ NSString *cacheDescription = [NSString stringWithFormat:@"%@", GetCacheSize()];
];
[sectionItems addObject:clearCache];
YTSettingsSectionItem *clearNotifications = [%c(YTSettingsSectionItem)
itemWithTitle:LOC(@"CLEAR_NOTIFICATIONS")
titleDescription:LOC(@"CLEAR_NOTIFICATIONS_DESC")
YTSettingsSectionItem *refreshConnection = [%c(YTSettingsSectionItem)
itemWithTitle:LOC(@"REFRESH_CONNECTION")
titleDescription:LOC(@"REFRESH_CONNECTION_DESC")
accessibilityIdentifier:nil
detailTextBlock:nil
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
[[UIApplication sharedApplication] cancelAllLocalNotifications];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
ResetNetworkSettings();
return YES;
}
];
[sectionItems addObject:clearNotifications];
[sectionItems addObject:refreshConnection];
# pragma mark - App theme
SECTION_HEADER(LOC(@"THEME_OPTIONS"));