1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

We need to run this in the main thread

Because it does UI updates later.
This commit is contained in:
Daniel Barber 2020-02-02 16:37:02 -05:00
parent 2045f37f5e
commit 5ebddde262
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -128,9 +128,11 @@ class AlbumDetailView: NSViewController {
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)
} }
} }
}
func getBigCoverArt(song: Song, album: Album) { func getBigCoverArt(song: Song, album: Album) {
let provider = MPDAlbumArtImageDataProvider( let provider = MPDAlbumArtImageDataProvider(