Update CustomPlayer.swift

This commit is contained in:
cranci 2025-04-30 18:52:20 +02:00 committed by GitHub
parent 17428c45bf
commit d57b803129
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2038,15 +2038,14 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
}
]
let resetDelayAction = UIAction(title: "Reset Timing") { [weak self] _ in
let resetDelayAction = UIAction(title: "Reset Delay") { [weak self] _ in
guard let self = self else { return }
SubtitleSettingsManager.shared.update { settings in settings.subtitleDelay = 0.0 }
self.subtitleDelay = 0.0
self.loadSubtitleSettings()
DropManager.shared.showDrop(title: "Subtitle Timing Reset", subtitle: "", duration: 0.5, icon: UIImage(systemName: "clock.arrow.circlepath"))
}
let delayMenu = UIMenu(title: "Subtitle Timing", children: delayActions + [resetDelayAction])
let delayMenu = UIMenu(title: "Subtitle Delay", children: delayActions + [resetDelayAction])
let subtitleOptionsMenu = UIMenu(title: "Subtitle Options", children: [
subtitlesToggleAction, colorMenu, fontSizeMenu, shadowMenu, backgroundMenu, paddingMenu, delayMenu