Update Settings.xm

This commit is contained in:
arichorn 2023-07-13 03:52:41 -05:00 committed by GitHub
parent 102e84656f
commit 2be0115841
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1476,6 +1476,16 @@ extern NSBundle *uYouPlusBundle();
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide Subscriptions Notification Badge")
titleDescription:LOC(@"Hides the Red Notification Badge shown in the Pivot Bar of the Subscriptions Tab.")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"hideSubscriptionsNotificationBadge_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideSubscriptionsNotificationBadge_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Enable YTSpeed")
titleDescription:LOC(@"Enable YTSpeed to have more Playback Speed Options. App restart is required.")
accessibilityIdentifier:nil