From 56706ecc10d63050384dafff7e659638048bf615 Mon Sep 17 00:00:00 2001 From: cranci1 <100066266+cranci1@users.noreply.github.com> Date: Sun, 2 Feb 2025 13:38:39 +0100 Subject: [PATCH] fxied --- .../MediaInfoView/EpisodeCell/EpisodeCell.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Sora/Views/MediaInfoView/EpisodeCell/EpisodeCell.swift b/Sora/Views/MediaInfoView/EpisodeCell/EpisodeCell.swift index 0fa38f0..c94e17c 100644 --- a/Sora/Views/MediaInfoView/EpisodeCell/EpisodeCell.swift +++ b/Sora/Views/MediaInfoView/EpisodeCell/EpisodeCell.swift @@ -74,12 +74,16 @@ struct EpisodeCell: View { .frame(width: 40, height: 40) } .contextMenu { - Button(action: markAsWatched) { - Label("Mark as Watched", systemImage: "checkmark.circle") + if currentProgress <= 0.9 { + Button(action: markAsWatched) { + Label("Mark as Watched", systemImage: "checkmark.circle") + } } - Button(action: resetProgress) { - Label("Reset Progress", systemImage: "arrow.counterclockwise") + if currentProgress != 0 { + Button(action: resetProgress) { + Label("Reset Progress", systemImage: "arrow.counterclockwise") + } } } .onAppear {