mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
little tweaks
This commit is contained in:
parent
7c5cec2285
commit
e4e5fc520a
2 changed files with 6 additions and 2 deletions
|
|
@ -30,6 +30,9 @@ class VideoPlayerViewController: UIViewController {
|
|||
init(module: ScrapingModule) {
|
||||
self.module = module
|
||||
super.init(nibName: nil, bundle: nil)
|
||||
if UserDefaults.standard.object(forKey: "subtitlesEnabled") == nil {
|
||||
UserDefaults.standard.set(true, forKey: "subtitlesEnabled")
|
||||
}
|
||||
}
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
|
|
@ -37,8 +40,7 @@ class VideoPlayerViewController: UIViewController {
|
|||
}
|
||||
|
||||
private func setupSubtitles() {
|
||||
guard !subtitles.isEmpty && UserDefaults.standard.bool(forKey: "subtitlesEnabled"),
|
||||
let subtitleURL = URL(string: subtitles) else {
|
||||
guard !subtitles.isEmpty, UserDefaults.standard.bool(forKey: "subtitlesEnabled"), let subtitleURL = URL(string: subtitles) else {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -167,6 +167,8 @@ struct SettingsViewData: View {
|
|||
}
|
||||
)
|
||||
|
||||
Divider().padding(.horizontal, 16)
|
||||
|
||||
SettingsButtonRow(
|
||||
icon: "film",
|
||||
title: "Remove Downloads",
|
||||
|
|
|
|||
Loading…
Reference in a new issue