Skip to content

Commit fe8f6c0

Browse files
authored
fix: show library actions when empty (#849)
1 parent f17d450 commit fe8f6c0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/screens/library_page.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ class _LibraryPageState extends State<LibraryPage> {
195195

196196
final hasFolders = folders.isNotEmpty;
197197
final hasCustomPlaylists = playlistsNotInFolders.isNotEmpty;
198-
final hasAnythingAfterOffline = hasFolders || hasCustomPlaylists;
198+
final hasLibraryContent = !isOffline || hasFolders || hasCustomPlaylists;
199199

200200
final slivers = <Widget>[];
201201

202-
if (hasAnythingAfterOffline) {
202+
if (hasLibraryContent) {
203203
slivers.add(
204204
SliverToBoxAdapter(
205205
child: Column(
@@ -254,10 +254,10 @@ class _LibraryPageState extends State<LibraryPage> {
254254
NavigationManager.router.go('/library/userSongs/offline'),
255255
cubeIcon: FluentIcons.cloud_off_24_regular,
256256
borderRadius: !isOffline
257-
? (hasAnythingAfterOffline
257+
? (hasCustomPlaylists || hasFolders
258258
? BorderRadius.zero
259259
: commonCustomBarRadiusLast)
260-
: (hasAnythingAfterOffline
260+
: (hasCustomPlaylists || hasFolders
261261
? commonCustomBarRadiusFirst
262262
: commonCustomBarRadius),
263263
showBuildActions: false,

0 commit comments

Comments
 (0)