rmptui9dceacc
add no. of items in queue list title
+1 −1
2 files changed
- M src/app.rs +0 −1
- M src/ui.rs +1 −0
| @@ -65,7 +65,6 @@ impl App { | |||
| 65 | 65 | pub fn tick(&mut self) { | |
| 66 | 66 | self.conn.update_status(); | |
| 67 | 67 | self.update_queue(); | |
| 68 | − | // self.browser.update_directory(&mut self.conn).unwrap(); | |
| 69 | 68 | } | |
| 70 | 69 | ||
| 71 | 70 | pub fn quit(&mut self) { | |
| @@ -106,6 +106,7 @@ fn draw_queue(frame: &mut Frame, app: &mut App, size: Rect) { | |||
| 106 | 106 | let mut queue_state = ListState::default(); | |
| 107 | 107 | let title = Block::default() | |
| 108 | 108 | .title(Title::from("Play Queue".green().bold())) | |
| 109 | + | .title(Title::from(format!("({} items)", app.queue_list.list.len()).bold())) | |
| 109 | 110 | .title( | |
| 110 | 111 | Title::from(format!("Volume: {}%", app.conn.volume).bold().green()) | |
| 111 | 112 | .alignment(Alignment::Right), | |