File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -261,9 +261,11 @@ class _PlaylistPageState extends State<PlaylistPage> {
261261 ),
262262 if (songsLength > 0 )
263263 ShufflePlayButton (songs: _playlist['list' ] as List ? ?? []),
264- if (widget.playlistId != null && ! isUserCreated)
264+ if (widget.playlistId != null &&
265+ ! isUserCreated &&
266+ ! offlineMode.value)
265267 _buildLikeButton (primaryColor),
266- _buildSyncButton (primaryColor),
268+ if ( ! offlineMode.value) _buildSyncButton (primaryColor),
267269 _buildDownloadButton (),
268270 if (isUserCreated) ...[
269271 _buildShareButton (primaryColor),
@@ -517,6 +519,10 @@ class _PlaylistPageState extends State<PlaylistPage> {
517519 );
518520 }
519521
522+ if (offlineMode.value) {
523+ return const SizedBox .shrink ();
524+ }
525+
520526 return IconButton .filledTonal (
521527 icon: Icon (
522528 FluentIcons .arrow_download_24_filled,
You can’t perform that action at this time.
0 commit comments