rmptui520dad7
fix highlight delay when swapping songs
+2 −0
1 file changed
- M src/event/handler.rs +2 −0
| @@ -188,6 +188,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { | |||
| 188 | 188 | }; | |
| 189 | 189 | app.conn.conn.swap(current, next)?; | |
| 190 | 190 | app.update_queue(); | |
| 191 | + | app.conn.update_status(); | |
| 191 | 192 | } | |
| 192 | 193 | ||
| 193 | 194 | // Swap highlighted song with previous one | |
| @@ -201,6 +202,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { | |||
| 201 | 202 | }; | |
| 202 | 203 | app.conn.conn.swap(current, prev)?; | |
| 203 | 204 | app.update_queue(); | |
| 205 | + | app.conn.update_status(); | |
| 204 | 206 | } | |
| 205 | 207 | ||
| 206 | 208 | // go to top of list | |