mirror of
https://github.com/yattee/yattee.git
synced 2024-12-12 21:30:32 +05:30
Minor changes
This commit is contained in:
parent
e39f4373bb
commit
836057578f
@ -3,6 +3,6 @@ import AppKit
|
||||
extension NSTextField {
|
||||
override open var focusRingType: NSFocusRingType {
|
||||
get { .none }
|
||||
set {} // swiftlint:disable:this unused_setter_value
|
||||
set {}
|
||||
}
|
||||
}
|
||||
|
@ -103,12 +103,13 @@ struct PlaybackBar: View {
|
||||
return "loading..."
|
||||
}
|
||||
|
||||
guard let video = player.currentVideo else {
|
||||
guard let video = player.currentVideo,
|
||||
let time = player.time else {
|
||||
return ""
|
||||
}
|
||||
|
||||
let videoLengthAtRate = video.length / Double(player.currentRate)
|
||||
let remainingSeconds = videoLengthAtRate - player.time!.seconds
|
||||
let remainingSeconds = videoLengthAtRate - time.seconds
|
||||
|
||||
if remainingSeconds < 60 {
|
||||
return "less than a minute"
|
||||
|
Loading…
Reference in New Issue
Block a user