From a3d6a0342b83fdd4d1e7a8efd9a6bc455c450c03 Mon Sep 17 00:00:00 2001 From: Philip Wang Date: Thu, 22 Jan 2026 19:55:09 -0500 Subject: [PATCH] after prettier --- ui/v2.5/graphql/data/config.graphql | 2 +- .../Scenes/SceneDetails/ExternalPlayerButton.tsx | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ui/v2.5/graphql/data/config.graphql b/ui/v2.5/graphql/data/config.graphql index a823cc6fa..9f605e862 100644 --- a/ui/v2.5/graphql/data/config.graphql +++ b/ui/v2.5/graphql/data/config.graphql @@ -59,7 +59,7 @@ fragment ConfigGeneralData on ConfigGeneralResult { liveTranscodeInputArgs liveTranscodeOutputArgs drawFunscriptHeatmapRange - + scraperPackageSources { name url diff --git a/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx b/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx index 564719031..766c683d3 100644 --- a/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx +++ b/ui/v2.5/src/components/Scenes/SceneDetails/ExternalPlayerButton.tsx @@ -18,17 +18,20 @@ export const ExternalPlayerButton: React.FC = ({ const isAppleDevice = /(ipod|iphone|ipad)/i.test(navigator.userAgent); const intl = useIntl(); const { configuration } = useConfigurationContext(); - const interfaceConfig = configuration?.interface; const uiConfig = configuration?.ui; - const showOpenExternal = uiConfig?.showOpenExternal??true; + const showOpenExternal = uiConfig?.showOpenExternal ?? true; const { paths } = scene; const { files } = scene; const { path } = files[0]; - const fileName = path.split('/').pop()?.split('\\').pop()??''; - - if (!paths || !paths.stream || (!isAndroid && !isAppleDevice && !showOpenExternal)) - return ; + const fileName = path.split("/").pop()?.split("\\").pop() ?? ""; + + if ( + !paths || + !paths.stream || + (!isAndroid && !isAppleDevice && !showOpenExternal) + ) + return ; const { stream } = paths; const title = objectTitle(scene);