1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-15 18:19:33 +01:00

Fix marking songs available

This commit is contained in:
Jonas Kvinge 2021-03-14 23:08:05 +01:00
parent c75db8dc60
commit 61b201810d

View File

@ -597,7 +597,13 @@ void CollectionBackend::MarkSongsUnavailable(const SongList &songs, const bool u
}
transaction.Commit();
emit SongsDeleted(songs);
if (unavailable) {
emit SongsDeleted(songs);
}
else {
emit SongsDiscovered(songs);
}
UpdateTotalSongCountAsync();
UpdateTotalArtistCountAsync();
UpdateTotalAlbumCountAsync();