From c40c81ef8d3073701d5d3d909502dd0aaa074953 Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Fri, 14 Feb 2025 21:48:15 -0600 Subject: [PATCH] Update uYouPlusSettings.xm --- Sources/uYouPlusSettings.xm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Sources/uYouPlusSettings.xm b/Sources/uYouPlusSettings.xm index 929ea58..e35fcb8 100644 --- a/Sources/uYouPlusSettings.xm +++ b/Sources/uYouPlusSettings.xm @@ -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"));