From bf531facb0349c528f6f8965d05257a46a7f3fd3 Mon Sep 17 00:00:00 2001 From: krolxon Date: Mon, 29 Apr 2024 16:27:23 +0530 Subject: add metadata in queue list --- src/handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/handler.rs') diff --git a/src/handler.rs b/src/handler.rs index 6d8c32c..cf5df27 100755 --- a/src/handler.rs +++ b/src/handler.rs @@ -62,7 +62,6 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { } } } - } match key_event.code { @@ -200,7 +199,6 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { app.conn .load_playlist(app.pl_list.list.get(app.pl_list.index).unwrap())?; } - } app.conn.update_status(); } @@ -279,6 +277,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { KeyCode::Char('>') => { if !app.queue_list.list.is_empty() { app.conn.conn.next()?; + app.update_queue(); } } @@ -286,6 +285,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { KeyCode::Char('<') => { if !app.queue_list.list.is_empty() { app.conn.conn.prev()?; + app.update_queue(); } } -- cgit v1.2.3