Unify pagination setup for ApiResult values

Also:
- Fix duplicate results
- Rename `album.load_tracks` to `album.load_all_tracks`
This commit is contained in:
Henrik Friedrichsen
2021-04-08 17:46:50 +02:00
parent 0f8e4d0558
commit 577e7ebd87
7 changed files with 26 additions and 34 deletions

View File

@@ -22,7 +22,7 @@ impl AlbumView {
pub fn new(queue: Arc<Queue>, library: Arc<Library>, album: &Album) -> Self {
let mut album = album.clone();
album.load_tracks(queue.get_spotify());
album.load_all_tracks(queue.get_spotify());
let tracks = if let Some(t) = album.tracks.as_ref() {
t.clone()