Archived
1

Added option to use lower resolution artworks in TagTunes

This commit is contained in:
Kim Wittenburg
2015-09-15 14:17:40 +02:00
committed by Kim Wittenburg
parent d49ad31b79
commit dcd7d2620d
4 changed files with 35 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ public class AlbumTableCellView: AdvancedTableCellView {
public func setupForAlbum(album: Album, loading: Bool, error: NSError?) {
textField?.stringValue = Preferences.sharedPreferences.useCensoredNames ? album.censoredName : album.name
secondaryTextField?.stringValue = album.artistName
asyncImageView.downloadImageFromURL(album.artwork.hiResURL)
asyncImageView.downloadImageFromURL(album.artwork.displayImageURL)
if loading {
textField?.textColor = NSColor.disabledControlTextColor()
rightAccessoryView = loadingIndicator
@@ -163,7 +163,7 @@ public class AlbumTableCellView: AdvancedTableCellView {
textField?.stringValue = Preferences.sharedPreferences.useCensoredNames ? searchResult.censoredName : searchResult.name
textField?.textColor = NSColor.controlTextColor()
secondaryTextField?.stringValue = searchResult.artistName
asyncImageView.downloadImageFromURL(searchResult.artwork.hiResURL)
asyncImageView.downloadImageFromURL(searchResult.artwork.displayImageURL)
if selectable {
button.title = NSLocalizedString("Select", comment: "Button title for 'selecting a search result'")
button.enabled = true