Skip to content

Commit

Permalink
Merge pull request #663 from Komodo5197/redesign-song-menu
Browse files Browse the repository at this point in the history
[Redesign] Song menu tweaks
  • Loading branch information
Chaphasilor authored Apr 1, 2024
2 parents e5c5eb9 + cc72e3a commit 5924d1c
Show file tree
Hide file tree
Showing 4 changed files with 615 additions and 544 deletions.
9 changes: 4 additions & 5 deletions lib/components/AlbumScreen/download_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ class DownloadButton extends ConsumerWidget {
.select((value) => value.valueOrNull?.isOffline)) ??
true;
String? parentTooltip;
if (status == DownloadItemStatus.incidental ||
status == DownloadItemStatus.incidentalOutdated) {
if (status == null) {
return const SizedBox.shrink();
}
if (status.isIncidental) {
var parent = downloadsService.getFirstRequiringItem(item);
if (parent != null) {
var parentName = AppLocalizations.of(context)!
Expand All @@ -42,9 +44,6 @@ class DownloadButton extends ConsumerWidget {
AppLocalizations.of(context)!.incidentalDownloadTooltip(parentName);
}
}
if (status == null) {
return const SizedBox.shrink();
}
String viewId;
if (isLibrary) {
viewId = item.id;
Expand Down
Loading

0 comments on commit 5924d1c

Please sign in to comment.