This commit is contained in:
Arkadiusz Fal
2023-05-23 18:00:33 +02:00
parent e1f03bc025
commit ac7dad2ab8
3 changed files with 22 additions and 12 deletions

View File

@@ -7,6 +7,7 @@ import Foundation
final class Watch: NSManagedObject, Identifiable {
@Default(.watchedThreshold) private var watchedThreshold
@Default(.saveHistory) private var saveHistory
@Default(.showWatchingProgress) private var showWatchingProgress
}
extension Watch {
@@ -102,4 +103,8 @@ extension Watch {
return Video(app: app ?? AccountsModel.shared.current?.app ?? .local, instanceURL: instanceURL, videoID: videoID)
}
var isShowingProgress: Bool {
saveHistory && showWatchingProgress && (finished || progress > 0)
}
}