mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 19:12:06 +00:00
Add disable toggle for time remaining
This commit is contained in:
parent
2fda2189cb
commit
22b61ce7df
2 changed files with 18 additions and 1 deletions
|
|
@ -986,6 +986,22 @@ NSData *cellDividerData;
|
|||
}
|
||||
%end
|
||||
|
||||
// Disable toggle time remaining - @bhackel
|
||||
%hook YTInlinePlayerBarContainerView
|
||||
- (void)setShouldDisplayTimeRemaining:(BOOL)arg1 {
|
||||
if (IS_ENABLED(@"disableRemainingTime_enabled")) {
|
||||
// Set true if alwaysShowRemainingTime
|
||||
if (IS_ENABLED(@"alwaysShowRemainingTime_enabled")) {
|
||||
%orig(YES);
|
||||
} else {
|
||||
%orig(NO);
|
||||
}
|
||||
return;
|
||||
}
|
||||
%orig;
|
||||
}
|
||||
%end
|
||||
|
||||
// Hide previous and next buttons in all videos - @bhackel
|
||||
%group gHidePreviousAndNextButton
|
||||
%hook YTColdConfig
|
||||
|
|
|
|||
|
|
@ -319,7 +319,8 @@ extern NSBundle *uYouPlusBundle();
|
|||
SWITCH_ITEM2(LOC(@"STOCK_VOLUME_HUD"), LOC(@"STOCK_VOLUME_HUD_DESC"), @"stockVolumeHUD_enabled");
|
||||
SWITCH_ITEM2(LOC(@"Disable pull-to-fullscreen gesture"), LOC(@"Disable the drag gesture to enter vertical fullscreen. Only applies to landscape videos."), @"disablePullToFull_enabled");
|
||||
SWITCH_ITEM(LOC(@"Disable Double tap to skip chapter"), LOC(@"Disable the 2-finger double tap gesture that skips forward/backward by a chapter"), @"disableChapterSkip_enabled");
|
||||
SWITCH_ITEM2(LOC(@"Always use remaining time"), LOC(@"Change the default to show time remaining in the player bar"), @"alwaysShowRemainingTime_enabled");
|
||||
SWITCH_ITEM(LOC(@"Always use remaining time"), LOC(@"Change the default to show time remaining in the player bar"), @"alwaysShowRemainingTime_enabled");
|
||||
SWITCH_ITEM(LOC(@"Disable toggle time remaining"), LOC(@"Disables changing time elapsed to time remaining. Use with other setting to always show remaining time."), @"disableRemainingTime_enabled");
|
||||
|
||||
# pragma mark - Video controls overlay options
|
||||
SECTION_HEADER(LOC(@"VIDEO_PLAYER_OPTIONS"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue