Update Settings.xm

This commit is contained in:
arichornlover 2023-10-23 02:19:34 -05:00 committed by GitHub
parent a40becdb44
commit 4bfbcd5f6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1674,7 +1674,7 @@ extern NSBundle *uYouPlusBundle();
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Download Button under player")
titleDescription:LOC(@"Hides the Download Button below the player.")
titleDescription:LOC(@"Hides the Download Button under the video player.")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"hideAddToOfflineButton_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
@ -1683,6 +1683,16 @@ extern NSBundle *uYouPlusBundle();
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the Remix Button under player")
titleDescription:LOC(@"Hides the Remix Button under the video player.")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"hideRemixButton_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideRemixButton_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Hide the comment section under player")
titleDescription:LOC(@"Hides the Comment Section below the player.")
accessibilityIdentifier:nil