From 49d4b433a71e49f74496d7d18e400d8bda680c97 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Mon, 6 Jul 2026 15:56:01 +0200 Subject: [PATCH] fix(music): show now-playing rail item only on TV Desktop already has the mini-player as the way back into the now-playing screen; the rail item is redundant there. --- lib/widgets/side_navigation_rail.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/widgets/side_navigation_rail.dart b/lib/widgets/side_navigation_rail.dart index 0f63a753..26d68e57 100644 --- a/lib/widgets/side_navigation_rail.dart +++ b/lib/widgets/side_navigation_rail.dart @@ -643,9 +643,11 @@ class SideNavigationRailState extends State with MountedSetS final itemHorizontalPadding = itemHorizontalPaddingForContext(context, isCollapsed: isCollapsed); final hasLiveTv = context.watch().hasLiveTv; // Nullable watch: rail tests (and any host without the profile session - // scope) simply never show the Now Playing item. + // scope) simply never show the Now Playing item. TV-only — it is the + // way back into the now-playing screen there; desktop already has the + // mini-player for that. final musicService = context.watch(); - final nowPlayingTrack = widget.isOfflineMode ? null : musicService?.currentTrack; + final nowPlayingTrack = widget.isOfflineMode || !PlatformDetector.isTV() ? null : musicService?.currentTrack; // Listen to fullscreen + groupLibrariesByServer setting so the rail // rebuilds when the user toggles "Group libraries by server" in Appearance.