Krolyxon
Commit 520dad7

rmptui520dad7

fix highlight delay when swapping songs

Author
krolxon
Date
2024-05-12 17:19 +0530
Parent
f3fb60a
Commit
520dad7c9a50cbb5d28d047a33efdc1611e7fb18

+2 −0

1 file changed

  1. M src/event/handler.rs +2 −0
M src/event/handler.rs View
@@ -188,6 +188,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
188188 };
189189 app.conn.conn.swap(current, next)?;
190190 app.update_queue();
191+ app.conn.update_status();
191192 }
192193
193194 // Swap highlighted song with previous one
@@ -201,6 +202,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
201202 };
202203 app.conn.conn.swap(current, prev)?;
203204 app.update_queue();
205+ app.conn.update_status();
204206 }
205207
206208 // go to top of list