rmptui0ded150
update status when switching songs
+2 −0
1 file changed
- M src/event/handler.rs +2 −0
| @@ -97,6 +97,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { | |||
| 97 | 97 | if !app.queue_list.list.is_empty() { | |
| 98 | 98 | app.conn.conn.next()?; | |
| 99 | 99 | app.update_queue(); | |
| 100 | + | app.conn.update_status(); | |
| 100 | 101 | } | |
| 101 | 102 | } | |
| 102 | 103 | ||
| @@ -105,6 +106,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { | |||
| 105 | 106 | if !app.queue_list.list.is_empty() { | |
| 106 | 107 | app.conn.conn.prev()?; | |
| 107 | 108 | app.update_queue(); | |
| 109 | + | app.conn.update_status(); | |
| 108 | 110 | } | |
| 109 | 111 | } | |
| 110 | 112 | ||