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