mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Unwatched videos in subscriptions
This commit is contained in:
@@ -149,6 +149,7 @@ struct VideoContextMenuView: View {
|
||||
var markAsWatchedButton: some View {
|
||||
Button {
|
||||
Watch.markAsWatched(videoID: video.videoID, account: accounts.current, duration: video.length, context: backgroundContext)
|
||||
FeedModel.shared.calculateUnwatchedFeed()
|
||||
} label: {
|
||||
Label("Mark as watched", systemImage: "checkmark.circle.fill")
|
||||
}
|
||||
@@ -156,11 +157,9 @@ struct VideoContextMenuView: View {
|
||||
|
||||
var removeFromHistoryButton: some View {
|
||||
Button {
|
||||
guard let watch else {
|
||||
return
|
||||
}
|
||||
|
||||
guard let watch else { return }
|
||||
player.removeWatch(watch)
|
||||
FeedModel.shared.calculateUnwatchedFeed()
|
||||
} label: {
|
||||
Label("Remove from history", systemImage: "delete.left.fill")
|
||||
}
|
||||
|
Reference in New Issue
Block a user