Replace “Clear Notifications” with “Refresh Connection” button

Basically refreshes NSURLSession in the app. May or May Not be useful.
This commit is contained in:
aricloverEXALT 2025-02-14 21:44:38 -06:00 committed by GitHub
parent 62e096b747
commit 04b8448817
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"));