Selected item is always at the bottom of list #41
@ -401,9 +401,9 @@ impl<'a, 'b> TrackState<'a, 'b> {
|
|||||||
let track = state.selected().map(|i| &tracks[i]);
|
let track = state.selected().map(|i| &tracks[i]);
|
||||||
let info = Paragraph::new(format!(
|
let info = Paragraph::new(format!(
|
||||||
"Track: {}\n\
|
"Track: {}\n\
|
||||||
Title: {}\n\
|
Title: {}\n\
|
||||||
Artist: {}\n\
|
Artist: {}\n\
|
||||||
Format: {}",
|
Format: {}",
|
||||||
track
|
track
|
||||||
.map(|t| t.number.to_string())
|
.map(|t| t.number.to_string())
|
||||||
.unwrap_or_else(|| "".to_string()),
|
.unwrap_or_else(|| "".to_string()),
|
||||||
|
Loading…
Reference in New Issue
Block a user