make album column for tracks configurable

introduces new config variable `album_column`

fixes #267
This commit is contained in:
Henrik Friedrichsen
2020-10-17 23:56:23 +02:00
parent 9fbbc7921e
commit e1b4892b8a
12 changed files with 22 additions and 11 deletions

View File

@@ -153,8 +153,12 @@ impl ListItem for Track {
format!("{}", self)
}
fn display_center(&self) -> String {
self.album.to_string()
fn display_center(&self, library: Arc<Library>) -> String {
if library.config().album_column.unwrap_or(true) {
self.album.to_string()
} else {
"".to_string()
}
}
fn display_right(&self, library: Arc<Library>) -> String {