mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix respecting restart playing videos setting
This commit is contained in:
parent
3a05462965
commit
ba07c410f5
@ -227,7 +227,7 @@ extension PlayerModel {
|
||||
|
||||
let newItem = enqueueVideo(video, atTime: time, prepending: true)
|
||||
|
||||
advanceToItem(newItem!)
|
||||
advanceToItem(newItem!, at: time)
|
||||
}
|
||||
|
||||
func removeQueueItems() {
|
||||
|
@ -32,6 +32,8 @@ struct PlayerQueueItem: Hashable, Identifiable, Defaults.Serializable {
|
||||
}
|
||||
|
||||
var shouldRestartPlaying: Bool {
|
||||
guard Defaults[.watchedVideoPlayNowBehavior] == .continue else { return true }
|
||||
|
||||
guard let seconds = playbackTime?.seconds else {
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user