mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Update uYouPlusSettings.xm
This commit is contained in:
parent
a1402b49d1
commit
c40c81ef8d
1 changed files with 5 additions and 6 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue