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
f39f69b4dc
commit
eb5cee2a75
@ -120,13 +120,11 @@ class AlbumDetailView: NSViewController {
|
||||
|
||||
DispatchQueue.main.async {
|
||||
self.albumTracksView.reloadData()
|
||||
}
|
||||
|
||||
guard let song = self.dataSource.albumSongs.first?.song ??
|
||||
self.dataSource.albumSongs[1].song
|
||||
else { return }
|
||||
guard let song = self.dataSource.albumSongs.first?.song ??
|
||||
self.dataSource.albumSongs[1].song
|
||||
else { return }
|
||||
|
||||
DispatchQueue.main.async {
|
||||
self.getBigCoverArt(song: song, album: album)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user