Update Settings.xm

This commit is contained in:
arichorn 2023-07-13 20:03:56 -05:00 committed by GitHub
parent 7109d20eeb
commit b2fb362f0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,13 +68,23 @@ extern NSBundle *uYouPlusBundle();
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK")
titleDescription:LOC(@"DISABLE_DOUBLE_TAP_TO_SEEK_DESC")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"tapToSkip_enabled")
switchOn:IsEnabled(@"disableDoubleTapToSkip_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableDoubleTapToSkip_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"Disable double tap to seek (Legacy)")
titleDescription:LOC(@"use this if the option above does not work.")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"disableDoubleTapToSkipLegacy_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"disableDoubleTapToSkipLegacy_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"SNAP_TO_CHAPTER")
titleDescription:LOC(@"SNAP_TO_CHAPTER_DESC")
accessibilityIdentifier:nil