diff options
| author | krolxon <krolyxon@tutanota.com> | 2024-04-29 16:27:23 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2024-04-29 16:27:23 +0530 |
| commit | bf531facb0349c528f6f8965d05257a46a7f3fd3 (patch) | |
| tree | 1f0c80bd822bd7eaeb15c8921bd6286091821b68 /src/handler.rs | |
| parent | c61b0503c7b9f112a72829004ea5308083f39185 (diff) | |
add metadata in queue list
Diffstat (limited to 'src/handler.rs')
| -rwxr-xr-x | src/handler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } } |
