feat: use better structure for custom files

This commit is contained in:
Mark
2025-08-23 14:41:27 +02:00
parent 12d85241cd
commit a053b5ee5c
2 changed files with 118 additions and 17 deletions

View File

@@ -1145,6 +1145,15 @@ impl Database {
self.modified_data();
&mut self.covers
}
pub fn artists_albums_songs_mut(
&mut self,
) -> (
&mut HashMap<ArtistId, Artist>,
&mut HashMap<AlbumId, Album>,
&mut HashMap<SongId, Song>,
) {
(&mut self.artists, &mut self.albums, &mut self.songs)
}
}
#[derive(Clone, Debug)]