This commit is contained in:
krolxon 2024-05-12 12:35:50 +05:30
parent 6af7553fc8
commit 6338417002
1 changed files with 7 additions and 3 deletions

View File

@ -175,12 +175,16 @@ fn draw_queue(frame: &mut Frame, app: &mut App, size: Rect) {
Cell::from(time.to_string().magenta()),
]);
let pos = app.conn.current_song.place.unwrap_or_default().pos;
if i == pos as usize {
let place = app.conn.current_song.place;
if let Some(pos) = place {
if i == pos.pos as usize {
row.magenta().bold()
} else {
row
}
} else {
row
}
});
let mut state = TableState::new();