Rescanning library does not update the database #151

Merged
wojtek merged 2 commits from 150---rescanning-library-does-not-update-the-database into main 2024-03-01 15:34:21 +01:00
Showing only changes of commit 00e853339e - Show all commits

View File

@ -72,7 +72,7 @@ impl<LIB, DB> MusicHoard<LIB, DB> {
} }
} }
fn merge_collections(&mut self) -> Collection { fn merge_collections(&self) -> Collection {
let mut primary = self.library_cache.clone(); let mut primary = self.library_cache.clone();
for secondary_artist in self.database_cache.iter().cloned() { for secondary_artist in self.database_cache.iter().cloned() {
if let Some(ref mut primary_artist) = primary.get_mut(&secondary_artist.id) { if let Some(ref mut primary_artist) = primary.get_mut(&secondary_artist.id) {