From c12acf8cd9396eba7643ca4cb555d0d9c6afb2e4 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Mon, 7 Jul 2025 19:59:10 -0600 Subject: [PATCH] Revert "maybe add check beside active embed?" This reverts commit 76124c9299319f39ad37e0878731a2571fe8f588. --- .../atoms/settings/SourceSelectingView.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/components/player/atoms/settings/SourceSelectingView.tsx b/src/components/player/atoms/settings/SourceSelectingView.tsx index 6ec2e38a..dcb574ab 100644 --- a/src/components/player/atoms/settings/SourceSelectingView.tsx +++ b/src/components/player/atoms/settings/SourceSelectingView.tsx @@ -31,15 +31,6 @@ export function EmbedOption(props: { const { t } = useTranslation(); const unknownEmbedName = t("player.menus.sources.unknownOption"); - const currentSourceId = usePlayerStore((s) => s.sourceId); - const captionList = usePlayerStore((s) => s.captionList); - - const isActive = useMemo(() => { - if (currentSourceId !== props.sourceId) return false; - - return captionList.some((caption) => caption.id.includes(props.embedId)); - }, [currentSourceId, props.sourceId, props.embedId, captionList]); - const embedName = useMemo(() => { if (!props.embedId) return unknownEmbedName; const sourceMeta = getCachedMetadata().find((s) => s.id === props.embedId); @@ -54,12 +45,7 @@ export function EmbedOption(props: { ); return ( - + {embedName}