Skip to content

Commit

Permalink
Fix transcoding prompt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Komodo5197 committed May 20, 2024
1 parent 11f901f commit 5773133
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/components/AlbumScreen/download_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ class DownloadDialog extends StatefulWidget {
/// if transcode downloads is set to ask. If neither is needed, the
/// download is initiated immediately with no dialog.
static Future<void> show(
BuildContext context, DownloadStub item, String? viewId,
{bool infoOnly = false}) async {
BuildContext context, DownloadStub item, String? viewId) async {
if (viewId == null) {
final finampUserHelper = GetIt.instance<FinampUserHelper>();
viewId = finampUserHelper.currentUser!.currentViewId;
Expand All @@ -49,8 +48,8 @@ class DownloadDialog extends StatefulWidget {
// Skip asking for transcode for image only collection
item.finampCollection?.type != FinampCollectionType.libraryImages ||
// Skip asking for transcode for metadata +image collection
(item.finampCollection?.type != FinampCollectionType.allPlaylists &&
infoOnly);
(item.finampCollection?.type !=
FinampCollectionType.allPlaylistsMetadata);
String? downloadLocation =
FinampSettingsHelper.finampSettings.defaultDownloadLocation;
if (!FinampSettingsHelper.finampSettings.downloadLocationsMap
Expand Down

0 comments on commit 5773133

Please sign in to comment.