Skip to content

Commit

Permalink
fix: white dialog when no track artists
Browse files Browse the repository at this point in the history
closes #126
  • Loading branch information
MSOB7YY committed Feb 18, 2024
1 parent 57b3cea commit bae60f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/dialogs/general_popup_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ Future<void> showGeneralPopupDialog(
const SizedBox(width: 16.0),
if (forceSingleArtwork!)
NamidaHero(
tag: heroTag ?? '$comingFromQueue${index}_sussydialogs_${tracks.first.path}$additionalHero',
tag: heroTag ?? '$comingFromQueue${index}_sussydialogs_${tracks.firstOrNull?.path}$additionalHero',
child: ArtworkWidget(
key: Key(tracks.pathToImage),
track: tracks.trackOfImage,
Expand Down Expand Up @@ -1136,7 +1136,7 @@ Future<void> showGeneralPopupDialog(
color: colorDelightened.value,
compact: true,
title: '${lang.PLAY_AFTER}: ${(Player.inst.latestInsertedIndex - Player.inst.currentIndex).displayTrackKeyword}',
subtitle: "${playAfterTrack.artistsList.first} - ${playAfterTrack.title}",
subtitle: [playAfterTrack.artistsList.firstOrNull, playAfterTrack.title].joinText(separator: ' - '),
icon: Broken.hierarchy_square,
onTap: () {
NamidaNavigator.inst.closeDialog();
Expand Down

0 comments on commit bae60f8

Please sign in to comment.