mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Fix potential race
This commit is contained in:
parent
1073dbd94c
commit
448165d786
@ -120,13 +120,11 @@ class AlbumDetailView: NSViewController {
|
|||||||
|
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
self.albumTracksView.reloadData()
|
self.albumTracksView.reloadData()
|
||||||
}
|
|
||||||
|
|
||||||
guard let song = self.dataSource.albumSongs.first?.song ??
|
guard let song = self.dataSource.albumSongs.first?.song ??
|
||||||
self.dataSource.albumSongs[1].song
|
self.dataSource.albumSongs[1].song
|
||||||
else { return }
|
else { return }
|
||||||
|
|
||||||
DispatchQueue.main.async {
|
|
||||||
self.getBigCoverArt(song: song, album: album)
|
self.getBigCoverArt(song: song, album: album)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user