From afebab301fcdaba632ac38962b0c82f26303a24c Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Tue, 23 Dec 2025 23:27:41 -0700 Subject: [PATCH] hide auto subtitle option if there are no subs --- .../player/atoms/settings/CaptionsView.tsx | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/components/player/atoms/settings/CaptionsView.tsx b/src/components/player/atoms/settings/CaptionsView.tsx index 31bee6e6..6681dbe4 100644 --- a/src/components/player/atoms/settings/CaptionsView.tsx +++ b/src/components/player/atoms/settings/CaptionsView.tsx @@ -533,21 +533,23 @@ export function CaptionsView({ {t("player.menus.subtitles.offChoice")} - {/* Enable subtitles option */} - handleRandomSelect()} - selected={!!selectedCaptionId} - loading={isRandomSelecting} - > -
- {t("player.menus.subtitles.autoSelectChoice")} - {selectedCaptionId && ( - - {t("player.menus.subtitles.autoSelectDifferentChoice")} - - )} -
-
+ {/* Automatically select subtitles option */} + {captions.length > 0 && ( + handleRandomSelect()} + selected={!!selectedCaptionId} + loading={isRandomSelecting} + > +
+ {t("player.menus.subtitles.autoSelectChoice")} + {selectedCaptionId && ( + + {t("player.menus.subtitles.autoSelectDifferentChoice")} + + )} +
+
+ )} {/* Custom upload option */}