mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2024-12-16 10:38:53 +01:00
Fix marking songs available
This commit is contained in:
parent
c75db8dc60
commit
61b201810d
@ -597,7 +597,13 @@ void CollectionBackend::MarkSongsUnavailable(const SongList &songs, const bool u
|
|||||||
}
|
}
|
||||||
transaction.Commit();
|
transaction.Commit();
|
||||||
|
|
||||||
|
if (unavailable) {
|
||||||
emit SongsDeleted(songs);
|
emit SongsDeleted(songs);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
emit SongsDiscovered(songs);
|
||||||
|
}
|
||||||
|
|
||||||
UpdateTotalSongCountAsync();
|
UpdateTotalSongCountAsync();
|
||||||
UpdateTotalArtistCountAsync();
|
UpdateTotalArtistCountAsync();
|
||||||
UpdateTotalAlbumCountAsync();
|
UpdateTotalAlbumCountAsync();
|
||||||
|
Loading…
Reference in New Issue
Block a user