Skip to content

Commit 80edb32

Browse files
committed
fix(library_page): remove offline songs from library as it's the default page for offline mode anyway
1 parent 983453f commit 80edb32

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

lib/screens/library_page.dart

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,18 +200,15 @@ class _LibraryPageState extends State<LibraryPage> {
200200
);
201201
},
202202
),
203+
PlaylistBar(
204+
context.l10n!.offlineSongs,
205+
onPressed: () =>
206+
NavigationManager.router.go('/library/userSongs/offline'),
207+
cubeIcon: FluentIcons.cloud_off_24_filled,
208+
borderRadius: commonCustomBarRadiusLast,
209+
showBuildActions: false,
210+
),
203211
],
204-
PlaylistBar(
205-
context.l10n!.offlineSongs,
206-
onPressed: () =>
207-
NavigationManager.router.go('/library/userSongs/offline'),
208-
cubeIcon: FluentIcons.cloud_off_24_filled,
209-
borderRadius: offlineMode.value
210-
? commonCustomBarRadius
211-
: commonCustomBarRadiusLast,
212-
showBuildActions: false,
213-
),
214-
215212

216213
_buildOfflinePlaylistsSection(),
217214

0 commit comments

Comments
 (0)