fix(jellyfin): hide unsupported continue watching removal

close #995
This commit is contained in:
edde746
2026-05-09 04:41:13 +02:00
parent 5d2302b322
commit c38c0cf55d
5 changed files with 33 additions and 14 deletions
+4 -4
View File
@@ -211,11 +211,11 @@ class MediaContextMenuState extends State<MediaContextMenu> {
activeProfile: activeProfile,
);
// Backend capabilities — used to gate the "Play Version" item below.
// Reads the same `capabilities.videoTranscoding` flag the in-player
// sheet uses so the two surfaces never disagree about what's offered.
// Backend capabilities gate menu items so we don't expose actions the
// active server cannot perform.
final mediaClient = _itemServerId != null ? multiServerProvider.getClientForServer(_itemServerId!) : null;
final canTranscode = mediaClient?.capabilities.videoTranscoding ?? false;
final canRemoveFromContinueWatching = mediaClient?.capabilities.continueWatchingRemoval ?? false;
final menuActions = <_MenuAction>[];
@@ -271,7 +271,7 @@ class MediaContextMenuState extends State<MediaContextMenu> {
);
}
if (widget.isInContinueWatching) {
if (widget.isInContinueWatching && canRemoveFromContinueWatching) {
menuActions.add(
_MenuAction(
value: 'remove_from_continue_watching',