mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Fix some formatting
This commit is contained in:
parent
c5bb5935e9
commit
ad7994ce14
@ -59,7 +59,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
||||
let cellView = tableView.makeView(
|
||||
withIdentifier: .discNumber,
|
||||
owner: self
|
||||
) as! NSTableCellView
|
||||
) as! NSTableCellView
|
||||
|
||||
cellView.textField?.stringValue = "Disc \(disc)"
|
||||
|
||||
@ -70,7 +70,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
||||
let cellView = tableView.makeView(
|
||||
withIdentifier: .trackNumber,
|
||||
owner: self
|
||||
) as! NSTableCellView
|
||||
) as! NSTableCellView
|
||||
|
||||
cellView.textField?.stringValue = "\(song.trackNumber)."
|
||||
|
||||
@ -81,7 +81,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
||||
let cellView = tableView.makeView(
|
||||
withIdentifier: .songTitle,
|
||||
owner: self
|
||||
) as! AlbumDetailSongTitleView
|
||||
) as! AlbumDetailSongTitleView
|
||||
|
||||
cellView.setShowArtist(dataSource.showSongArtist)
|
||||
cellView.setSong(song)
|
||||
@ -93,7 +93,7 @@ extension AlbumDetailView: NSTableViewDelegate {
|
||||
let cellView = tableView.makeView(
|
||||
withIdentifier: .songDuration,
|
||||
owner: self
|
||||
) as! NSTableCellView
|
||||
) as! NSTableCellView
|
||||
|
||||
cellView.textField?.font = .timerFont
|
||||
cellView.textField?.stringValue = song.duration.formattedTime
|
||||
|
||||
@ -46,12 +46,12 @@ extension MPDClient {
|
||||
}
|
||||
|
||||
var albumArtist: String {
|
||||
let albumArtist = getTag(.albumArtist);
|
||||
if albumArtist != "" {
|
||||
return albumArtist
|
||||
} else {
|
||||
return artist
|
||||
}
|
||||
let albumArtist = getTag(.albumArtist);
|
||||
if albumArtist != "" {
|
||||
return albumArtist
|
||||
} else {
|
||||
return artist
|
||||
}
|
||||
}
|
||||
|
||||
var date: String {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user