Skip to content

Commit

Permalink
Always delete parent from parents box (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmshrv committed Apr 5, 2021
1 parent 99eb18d commit 417aa94
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/services/DownloadsHelper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,7 @@ class DownloadsHelper {
}
}

// Deletes the album from downloadedAlbumsBox if it is never referenced in downloadedItemsBox.
if (_downloadedParentsBox.get(deletedFor).downloadedChildren.isEmpty) {
print(
"Album no longer has any downloaded children, removing entry from downloadedAlbumsBox");
_downloadedParentsBox.delete(deletedFor);
}
_downloadedParentsBox.delete(deletedFor);
}

/// Calculates the total file size of the song directory.
Expand Down

0 comments on commit 417aa94

Please sign in to comment.