Krolyxon
Commit 0ded150

rmptui0ded150

update status when switching songs

Author
krolxon
Date
2024-05-12 17:21 +0530
Parent
520dad7
Commit
0ded1507aa0910ba6246ef81cc619a459aac7c9a

+2 −0

1 file changed

  1. M src/event/handler.rs +2 −0
M src/event/handler.rs View
@@ -97,6 +97,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
9797 if !app.queue_list.list.is_empty() {
9898 app.conn.conn.next()?;
9999 app.update_queue();
100+ app.conn.update_status();
100101 }
101102 }
102103
@@ -105,6 +106,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
105106 if !app.queue_list.list.is_empty() {
106107 app.conn.conn.prev()?;
107108 app.update_queue();
109+ app.conn.update_status();
108110 }
109111 }
110112