fix(tv): hide season poster tab setting

This commit is contained in:
edde746
2026-05-20 22:22:46 +02:00
parent 1ebfee9354
commit 448a5d084c
2 changed files with 10 additions and 7 deletions
+3 -1
View File
@@ -1910,6 +1910,8 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
}
Widget _buildSeasonTabsContent(BuildContext context, bool showPosters) {
final showSeasonPosters = showPosters && !PlatformDetector.isTV();
return HorizontalScrollWithArrows(
controller: _seasonTabsScrollController,
builder: (scrollController) => SingleChildScrollView(
@@ -1922,7 +1924,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
Offset? tapPosition;
final posterPath = season.thumbPath;
Widget? topImage;
if (showPosters && posterPath != null && posterPath.isNotEmpty) {
if (showSeasonPosters && posterPath != null && posterPath.isNotEmpty) {
const posterWidth = 72.0;
const posterHeight = 108.0;
final dpr = MediaImageHelper.effectiveDevicePixelRatio(context);
@@ -39,12 +39,13 @@ class AppearanceSettingsScreen extends StatelessWidget {
title: t.settings.showEpisodeNumberOnCards,
subtitle: t.settings.showEpisodeNumberOnCardsDescription,
),
SettingSwitchTile(
pref: SettingsService.showSeasonPostersOnTabs,
icon: Symbols.image_rounded,
title: t.settings.showSeasonPostersOnTabs,
subtitle: t.settings.showSeasonPostersOnTabsDescription,
),
if (!PlatformDetector.isTV())
SettingSwitchTile(
pref: SettingsService.showSeasonPostersOnTabs,
icon: Symbols.image_rounded,
title: t.settings.showSeasonPostersOnTabs,
subtitle: t.settings.showSeasonPostersOnTabsDescription,
),
SettingsSectionHeader(t.settings.homeScreen),
if (!PlatformDetector.isTV())