fix #1
This commit is contained in:
parent
6af7553fc8
commit
6338417002
10
src/ui.rs
10
src/ui.rs
|
|
@ -175,9 +175,13 @@ fn draw_queue(frame: &mut Frame, app: &mut App, size: Rect) {
|
||||||
Cell::from(time.to_string().magenta()),
|
Cell::from(time.to_string().magenta()),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
let pos = app.conn.current_song.place.unwrap_or_default().pos;
|
let place = app.conn.current_song.place;
|
||||||
if i == pos as usize {
|
if let Some(pos) = place {
|
||||||
row.magenta().bold()
|
if i == pos.pos as usize {
|
||||||
|
row.magenta().bold()
|
||||||
|
} else {
|
||||||
|
row
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
row
|
row
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in New Issue