mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Fix #450
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user