fix(tv): hide season poster tab setting
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user