mirror of
https://github.com/dirtydishes/dreamio.git
synced 2026-06-06 13:37:24 +00:00
make caption menu state clearer
This commit is contained in:
parent
c0a017ceb2
commit
da7501d12b
6 changed files with 425 additions and 26 deletions
|
|
@ -59,10 +59,10 @@ enum PlaybackTimeFormatter {
|
|||
}
|
||||
|
||||
enum SubtitleOptionMapper {
|
||||
static let offTrack = SubtitleTrack(id: -1, name: "Off")
|
||||
static let noneTrack = SubtitleTrack(id: -1, name: "None")
|
||||
|
||||
static func options(from tracks: [SubtitleTrack]) -> [SubtitleTrack] {
|
||||
[offTrack] + tracks.filter { $0.id >= 0 }
|
||||
[noneTrack] + tracks.filter { $0.id >= 0 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue